|
| 13 Jul 2017 10:54 AM |
I am trying to get the Player's PlayerGUI when you hit something (E.G: a part) but it is not working.
script.Parent.Touched:connect(function(hit,player) hit.Parent.Torso.CFrame = CFrame.new(352.47, 292.835, -441.534) local GUI = script.TP_Effect:Clone() GUI.Parent = player.PlayerGui --ERROR HERE!!-- wait(2) end)
#code print("Lightning Flame Dragon Mode...") --I am totally not Natsu Dragneel |
|
|
| Report Abuse |
|
|
|
| 13 Jul 2017 11:00 AM |
Pastebim I made: YdE9GpxR
~𝓒𝓻𝔂𝓼𝓽𝓪𝓵 |
|
|
| Report Abuse |
|
|
| |
|
|
| 13 Jul 2017 11:37 AM |
first problem you have its: the Touched Event don't give a second parameter just 1 Parameter its The Instance that hit the Event Binded Instance.
Actually all this script are broken:
stay tunned in this channel, you will get the solution soon! |
|
|
| Report Abuse |
|
|
|
| 13 Jul 2017 11:37 AM |
| https://www.youtube.com/channel/UCZ7il9AWfJ78UwUuD3daKvg |
|
|
| Report Abuse |
|
|
|
| 13 Jul 2017 11:41 AM |
Um...you don't get the player as an automatic parameter from the touched event as far as I know:
script.Parent.Touched:connect(function(hit) local player = game.Players:FindFirstChild(hit.Parent.Name) local gui = (intput GUI location here):Clone() gui.Parent = player.PlayerGui end) |
|
|
| Report Abuse |
|
|