Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 7 years ago

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.

Closed as Not Constructive by RubenKan, ChipioIndustries, and shayner32

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 7 years ago

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!

Ad