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: gui teleportation

Previous Thread :: Next Thread 
fire243 is not online. fire243
Joined: 04 Apr 2010
Total Posts: 6532
24 Dec 2013 03:02 PM
function onClicked(player, gui)
local t = player.Torso
t.CFrame = CFrame.new(52, 960.6, 212)
end

script.Parent.MouseButton1Click:connect(onClicked)

that was my attempt
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
24 Dec 2013 03:06 PM
player is nil, gui is nil
Report Abuse
fire243 is not online. fire243
Joined: 04 Apr 2010
Total Posts: 6532
24 Dec 2013 03:12 PM
well how do i fix it?
Report Abuse
iValianT is not online. iValianT
Joined: 21 Aug 2010
Total Posts: 58381
24 Dec 2013 03:24 PM
Define those variables
Report Abuse
deathknight306 is not online. deathknight306
Joined: 15 Jan 2008
Total Posts: 183
24 Dec 2013 03:28 PM
If you are using a textbutton, try something like this.

player = script.Parent.Parent.Parent --Set this equal to the person's player
character = player.Character
button.MouseButton1Click:connect(function(mouse)
character.Torso.CFrame = CFrame.new(3,3,3) -- whatever position you want here
end)
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