Skip to content

Fixes and modifcations to several fun commands#2106

Open
ostrichman1 wants to merge 12 commits into
Epix-Incorporated:masterfrom
ostrichman1:Fix2
Open

Fixes and modifcations to several fun commands#2106
ostrichman1 wants to merge 12 commits into
Epix-Incorporated:masterfrom
ostrichman1:Fix2

Conversation

@ostrichman1
Copy link
Copy Markdown
Contributor

Fixed some broken fun commands

:glitch - Requires intensity to be a value above 0
:ghostglitch - Requires intensity to be a value above 0
:vibrate - Requires intensity to be a value above 0

:clown - Place was taken down so the command just kicks the player now
:material - Made it work when no material argument is given, checks material exists (PoF attached)
image
image

:neon - Remove unnecessary "(optional)" from argument for colour
:forest - Add permission check hints to command

:rainbowify - Fixes command by moving script to assets (PoF attached)
image

:shrek - Fixed shirt and pants not showing (PoF attached)
image

:freefall - Add default height
:stickman - Works with R15 characters (PoF attached)
image
image

:dog - Fixed R15 support (PoF attached - R6 attached for reference)
image
image

:flatten - Remove unnecessary "optional" from argument for number
:oldflatten - Remove unnecessary "optional" from argument for number

@ostrichman1 ostrichman1 changed the title Fixes and modifcations to several broken fun commands Fixes and modifcations to several fun commands Apr 16, 2026
@GalacticInspired
Copy link
Copy Markdown
Member

It looks like the coloring script for :rainbowify is client-sided, so only the player the command was used on can see the rainbow colors. It doesn't make sense to remove the clothes of the player on the server, just for the colors to not be replicated.

I understand that this appears to of been the previous behavior as well, but it looks like it may of been unintentional.
image

@ccuser44
Copy link
Copy Markdown
Contributor

Rainbowify shouldn't be broken in the first place. There is some fundamental issue preventing any string scripts from running

Comment thread MainModule/Server/Commands/Fun.luau Outdated
Comment on lines -658 to -683
local scr = Core.NewScript("ClientScript", [[
local restore = {}
local tween = game:GetService("TweenService")

repeat
task.wait()
local char = script.Parent.Parent
local clr = BrickColor.random()
for i, v in next, char:GetChildren() do
if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" then
if not restore[v] then
restore[v] = v.Color
end
v.Color = Color3.fromHSV(os.clock() % 1, 1, 1)
end
end
until not char or script.Name == "Stop" -- signal to unrainbowify

if script.Name == "Stop" then
for item, clr in next, restore do
item.Color = clr -- restore old colors
end
script:Destroy()
end
]], true)
scr.Name = "Rainbowify"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a fundamental issue preventing string scripts from running in the first place which I think should be investigated. Also changing this to a localscript makes it only visible to the current user.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to investigate that feel free to but I don't have a clue 🤷‍♂️

Comment thread MainModule/Server/Commands/Fun.luau
Comment on lines -1910 to +1900
Admin.RunCommand(`{Settings.Prefix}pants`, v.Name, "233373970")
Admin.RunCommand(`{Settings.Prefix}shirt`, v.Name, "133078195")
for _, v in v.Character:GetChildren() do
if v.Name == "Shirt" then local cl = v:Clone() cl.Parent = v.Parent cl.ShirtTemplate = "http://www.roblox.com/asset/?id=133078195" v:Destroy() end
if v.Name == "Pants" then local cl = v:Clone() cl.Parent = v.Parent cl.PantsTemplate = "http://www.roblox.com/asset/?id=233373970" v:Destroy() end
end
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is definitely a problem but I think you should attempt to fix it some other way because runcommand supports humanoiddescriptions and is more terse and modular.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to not work because of the fact that they are not clothing ids but instead asset ids to a shirt template and results in "Item not supported"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found the real ID for the pants so you can use the runcommand for the pants 233373971

Comment thread MainModule/Server/Commands/Fun.luau Outdated
@thatgato
Copy link
Copy Markdown
Contributor

thatgato commented May 8, 2026

Rainbowify shouldn't be broken in the first place. There is some fundamental issue preventing any string scripts from running

I've looked into this specifically, and posted my findings so far under issue #2090
I still haven't gotten around it, but maybe the information there could be useful regarding this problem

@GalacticInspired
Copy link
Copy Markdown
Member

What is happening? I only stated that it works only on the client, not that it doesn't work at all.

@ccuser44
Copy link
Copy Markdown
Contributor

ccuser44 commented May 9, 2026

What is happening? I only stated that it works only on the client, not that it doesn't work at all.

It currently does not work and the fix in the pr is kind of a hacky fix. There's a deeper issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants