| |
|
|
| 06 Jul 2013 12:56 PM |
script.Parent.ClickDetector.MouseClick:connect(function(Player) print(Player) end) |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2013 12:58 PM |
script.Parent.Touched:connect(function(hit) if ((hit.Parent:findFirstChild("Humanoid"))~=nil) then --code end end) |
|
|
| Report Abuse |
|
|
| |
|
|
| 06 Jul 2013 01:01 PM |
To get the player from hit:
local Player = Game.Players:GetPlayerFromCharacter(Hit.Parent) if Player then print(Player.Character) end |
|
|
| Report Abuse |
|
|
| |
|
|
| 06 Jul 2013 01:06 PM |
| hit.Parent.Humanoid.WalkSpeed = 30 |
|
|
| Report Abuse |
|
|