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: Why is this script not running right?

Previous Thread :: Next Thread 
R0ttenEggs is not online. R0ttenEggs
Joined: 12 Jun 2012
Total Posts: 5847
16 Jun 2017 07:41 PM
Its a teleporter script.

I know it works because I have had other people use it in their places where it worked.


but when I do it on one of my places, it will not work.

Ideas?


Report Abuse
awesomebawss is online. awesomebawss
Joined: 30 Aug 2013
Total Posts: 336
16 Jun 2017 07:57 PM
paste the script


( ͡° ͜ʖ ͡°)
Report Abuse
R0ttenEggs is not online. R0ttenEggs
Joined: 12 Jun 2012
Total Posts: 5847
16 Jun 2017 08:02 PM
name a part "Teleport1"

this script goes with that part:

TP2 = game.Workspace.Teleport2

function teleport(hit)
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.Torso.CFrame = CFrame.new(TP2.Position)
end
end

script.Parent.Touched:connect(teleport)





now, name a part "Teleport2"
Report Abuse
awesomebawss is online. awesomebawss
Joined: 30 Aug 2013
Total Posts: 336
16 Jun 2017 08:04 PM
seems fine... does it show any errors?


( ͡° ͜ʖ ͡°)
Report Abuse
R0ttenEggs is not online. R0ttenEggs
Joined: 12 Jun 2012
Total Posts: 5847
16 Jun 2017 08:04 PM
None whatsoever
Report Abuse
awesomebawss is online. awesomebawss
Joined: 30 Aug 2013
Total Posts: 336
16 Jun 2017 08:06 PM
lol try doing "hit.Parent:MoveTo(TP2.Position)" maybe? instead of manually changing the CFrame?


( ͡° ͜ʖ ͡°)
Report Abuse
R0ttenEggs is not online. R0ttenEggs
Joined: 12 Jun 2012
Total Posts: 5847
16 Jun 2017 08:11 PM
Nope
Report Abuse
awesomebawss is online. awesomebawss
Joined: 30 Aug 2013
Total Posts: 336
16 Jun 2017 08:12 PM
after "if hit.Parent:FindFirstChild("Humanoid") then" put a print("Test"). Tell me if it prints anything?


( ͡° ͜ʖ ͡°)
Report Abuse
R0ttenEggs is not online. R0ttenEggs
Joined: 12 Jun 2012
Total Posts: 5847
16 Jun 2017 08:14 PM
umm...


nope..


This means something is terribly wrong, doesn't it?
Report Abuse
Jonah13249 is not online. Jonah13249
Joined: 09 Oct 2009
Total Posts: 2105
16 Jun 2017 08:29 PM
I'm guessing it's like this:

--Workspace
---Teleport1
-----Script
---Teleport2


I did it as this is and it should work... No errors whatsoever? Gosh that's baffling.
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