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 » Scripting Helpers
Home Search
 

Re: onClicked Teleporter

Previous Thread :: Next Thread 
rowerowe71 is not online. rowerowe71
Joined: 14 Apr 2013
Total Posts: 1999
17 May 2014 08:03 PM
Can someone help me script something that makes it so when you click on a certain brick it teleports you to a certain location?
Report Abuse
ZirutoHellfire is not online. ZirutoHellfire
Joined: 16 Aug 2012
Total Posts: 4647
17 May 2014 08:06 PM
Teleport to a place?
OR
Teleport to a position in game?

nawm'sayin
Report Abuse
rowerowe71 is not online. rowerowe71
Joined: 14 Apr 2013
Total Posts: 1999
18 May 2014 05:25 AM
a position
Report Abuse
opplo is not online. opplo
Joined: 09 Dec 2008
Total Posts: 5320
18 May 2014 05:33 AM
TeleP = (0,0,0) --Fill this in.
function ClickyWicky(player)
char = player.Character
char:MoveTo(TeleP)
end

script.Parent.MouseClick:connect(ClickWicky)
Report Abuse
rowerowe71 is not online. rowerowe71
Joined: 14 Apr 2013
Total Posts: 1999
18 May 2014 05:51 AM
I'm not a good scripture but I'm pretty sure that won't work...
Report Abuse
uyoyalt is not online. uyoyalt
Joined: 16 Apr 2013
Total Posts: 2860
18 May 2014 05:51 AM
@Opl thats wrong.
Report Abuse
rowerowe71 is not online. rowerowe71
Joined: 14 Apr 2013
Total Posts: 1999
18 May 2014 05:53 AM
I found a chatted teleport script I just need to convert it onClicked. How would I do that?


game.Players.PlayerAdded:connect(function(player)
if player.Name == "rowerowe71" then
player.Chatted:connect(function(msg)
if msg == "end/Sim" then

target = CFrame.new(-2, 3, -16.2)
for i, player in ipairs(game.Players:GetChildren()) do
player.Character.Torso.CFrame = target + Vector3.new(0, i * 1, 0)

end


end
end)
end
end)
Report Abuse
uyoyalt is not online. uyoyalt
Joined: 16 Apr 2013
Total Posts: 2860
18 May 2014 05:54 AM
location = game.Workspace.Part.Position

function click(player)
player.Character:MoveTo(location + Vector3.new(0,2,0)
end

script.Parent.ClickDetector.MouseClick:connect(click)
Report Abuse
uyoyalt is not online. uyoyalt
Joined: 16 Apr 2013
Total Posts: 2860
18 May 2014 05:59 AM
Oops wait

location = game.Workspace.Part.Position

function click(player)
player.Character:MoveTo(location + Vector3.new(0,2,0))
end

script.Parent.ClickDetector.MouseClick:connect(click)
Report Abuse
rowerowe71 is not online. rowerowe71
Joined: 14 Apr 2013
Total Posts: 1999
18 May 2014 10:43 AM
Are you sure?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
18 May 2014 10:44 AM
Yes what uyoy put seems like it should work fine
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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