Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why does this GUI not work?

I want to make it so when you click a GUI, it makes a Smoke Trail on the specified players torso, but when you click on it again, it stops. Does anyone know why it doesn't work?

script.Parent.MouseButton1Down:connect(function(mouse)
	script.Parent.Style = "RobloxButtonDefault"
	if script.Parent.Style == "RobloxButtonDefault" then
		wait()
		Instance.new("Smoke",game.Workspace.xXScorpianKillerXx.Torso)
		repeat until script.Parent.Style == "RobloxButton"
		
	else
		script.Parent.Style = "RobloxButton"
		
	end
end)

1 answer

Change

Instance.new("Smoke",game.Workspace.xXScorpianKillerXx.Torso)

to

Instance.new("Smoke",workspace)

2 comments

0

He could keep it like that.

0

Oh, my bad I didn't notice that's what the parent is. Sorry.

This discussion is preserved as it was. New answers, comments, and votes are closed.