|
| 09 Nov 2017 05:32 PM |
| need a script that pops up a gui when u touch a block |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 09 Nov 2017 06:07 PM |
script.Parent.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then local playercharacter = hit.Parent.Name local player = game.Players:FindFirstChild(playercharacter) local gui = player.PlayerGui.GUI NAME HERE --------------NAME HERE!!!! gui.Enabled = true end end)
The part that says GUI NAME HERE means the name of the GUI |
|
|
| Report Abuse |
|
|
|
| 09 Nov 2017 06:10 PM |
An arguably better way to do it
script.Parent.Touched:Connect(function(h) if game.Players:GetPlayerFromCharacter(h.Parent) then local player = game.Players[h.Parent.Name] player.PlayerGui["write your gui name here"].Enabled = true end end) |
|
|
| Report Abuse |
|
|
|
| 09 Nov 2017 06:27 PM |
| techno doesnt it have spaces? |
|
|
| Report Abuse |
|
|
|
| 09 Nov 2017 07:50 PM |
| That is a better way. I had to rush that script because I had to go soon but use this instead of mine. |
|
|
| Report Abuse |
|
|