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

Basic script inside Gui stopped working?

So I have this code:

script.Parent.MouseButton1Click:Connect(function()
	print("Clicked")
end)

but when I click that button no output no nothing. why is this happening this has always worked for me

edit: this isn't a local script but its always worked in a regular script so idk

1 comment

0

two letters: F.E.

2 answers

✓ Accepted answer

Put that script inside a local script. Thats the only way it will work these days. If you want a server event to happen, use remote events.

I moved everything to my local script and added what I actually want the button to do in:

local player = script.Parent.Parent.Parent.Parent.Parent

script.Parent.MouseButton1Click:Connect(function()
	print("Clicked")
	player.skinValue.Value = "cowboy"
	player.Character.Head:Remove()
end)

it looks like its doing everything and killing the player but my skin manager doesn't change the skin for some reason

1 comment

0

nvm i got it on my own

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