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 and Positioning...

Previous Thread :: Next Thread 
yourchoice1 is not online. yourchoice1
Joined: 21 Jun 2013
Total Posts: 91
31 May 2014 02:37 PM
This is a local script in StarterGui...

function playgame_function(player)
game.StarterGui.ScreenGui:Remove()
player.Character.Torso.CFrame = Vector3.new(-27.073, 2.09, 133.009)

end

game.StarterGui.ScreenGui.MouseButton1Down:connect(playgame_function)
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
31 May 2014 02:38 PM
local player = Game.Players.LocalPlayer

function playgame_function()
player.PlayerGui.ScreenGui:Remove()
player.Character.Torso.CFrame = CFrame.new(-27.073, 2.09, 133.009)
end

game.StarterGui.ScreenGui.MouseButton1Down:connect(playgame_function)
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
31 May 2014 02:39 PM
You're editing the Gui in the StarterGui, which is not what you want to do. You want to edit the GUI in the Player's PlayerGui

-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::]
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
31 May 2014 02:39 PM
Dangit, cntkillme is 2speedy4me

-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::]

Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
31 May 2014 02:39 PM
And also,
player.ScreenGui.MouseButton1Down:connect(playgame_function)
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