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

(GUI) If clicked then morphed assasin hood will come off?

Plr = game.Players.LocalPlayers

script.Parent.MouseButton1Click:connect(function() workspace.hood.Transparency = 5

end)

^^ Is what I have right now, But Im not a scripter so I have no idea. I need a script where if gui is clicked, the hood that is in a morph, it will come off.

1 answer

I'm going to correct a couple things that you did wrong. First up, transparencies go from 0 to 1. 1 is invisible, 0 is solid. Also, in the first line you put 'game.Players.LocalPlayers' There shouldn't be an 's' there. Here's your script:

plr = game.Players.LocalPlayer

script.Parent.MouseButton1Click:connect(function()
	workspace.hood.Transparency = 1 -- That makes it invisible
	workspace.hood.CanCollide = false -- That makes it so people can't run into it
end)

You didn't really provide too much information, so I assumed that the hood is a part. Hopefully this helped!

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