|
| 06 Feb 2016 07:17 PM |
function onTouch(player) local debounce = true local h = script.Parent.Touched:FindFirstChild("Humanoid") if h ~= nil and debounce == true then debounce = false local hrp = h.Parent.HumanoidRootPart hrp.CFrame = CFrame.new(74, 5.4, 12) end end
script.Parent.Touched:connect(onTouch)
I could use a lot of help here.
|
|
|
| Report Abuse |
|
|
|
| 06 Feb 2016 07:18 PM |
script.Parent.Touched:connect(function(hit) local h = hit.Parent:findFirstChild("Humanoid") local hrp = h.Parent["HumanoidRootPart"] hrp.CFrame = CFrame.new(74,5.4,12) end)
#Code print("Narwhals are our future") |
|
|
| Report Abuse |
|
|
indeimaus
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 4285 |
|
|
| 06 Feb 2016 07:21 PM |
script.Parent.Touched:connect(function(touch) local h = touch.Parent:FindFirstChild("Humanoid") if not humanoid the return end local hrp = h.Parent.HumanoidRootPart hrp.CFrame = CFrame.new(74, 5.4, 12) script.Disabled = true wait (3) script.Disabled = false end)
this should work |
|
|
| Report Abuse |
|
|