generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How is this not working?

Previous Thread :: Next Thread 
inCharacter is not online. inCharacter
Joined: 03 Jul 2011
Total Posts: 143
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
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image