How do you set a GUI to visible = true through touched function?
Asked by
5 years ago Edited 5 years ago
Idk how to do it, I'm pretty new to scripting so.
I don't have a script example, it's just a question.
But anyway, here's my script, no errors its just not working
01 | local part = game.Workspace.GunKill.Part |
02 | local gui = game.StarterGui.Deathgui.Frame |
03 | game.Players.PlayerAdded:Connect( function (plr) |
05 | part.Touched:Connect( function () |
06 | gui.Script.Disabled = false |
08 | workspace.GunCock:Play() |
10 | workspace.Gunshot:Play() |
12 | plr:Kick( "Ending 5, Killed Self" ) |
GUI's script:
1 | script.Parent.Visible = true |