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: Can this be turned into a GUI script?

Previous Thread :: Next Thread 
Termblue101 is not online. Termblue101
Joined: 07 Jun 2012
Total Posts: 3559
16 May 2013 05:43 PM
[ Content Deleted ]
Report Abuse
Termblue101 is not online. Termblue101
Joined: 07 Jun 2012
Total Posts: 3559
16 May 2013 05:48 PM
[ Content Deleted ]
Report Abuse
Termblue101 is not online. Termblue101
Joined: 07 Jun 2012
Total Posts: 3559
16 May 2013 06:03 PM
[ Content Deleted ]
Report Abuse
Termblue101 is not online. Termblue101
Joined: 07 Jun 2012
Total Posts: 3559
16 May 2013 07:28 PM
[ Content Deleted ]
Report Abuse
KillerKyle is online. KillerKyle
Joined: 29 Jul 2007
Total Posts: 6371
16 May 2013 07:34 PM
Yes. It can be converted to a Gui TextButton.
Report Abuse
Termblue101 is not online. Termblue101
Joined: 07 Jun 2012
Total Posts: 3559
16 May 2013 07:48 PM
[ Content Deleted ]
Report Abuse
Termblue101 is not online. Termblue101
Joined: 07 Jun 2012
Total Posts: 3559
16 May 2013 07:54 PM
[ Content Deleted ]
Report Abuse
KillerKyle is online. KillerKyle
Joined: 29 Jul 2007
Total Posts: 6371
16 May 2013 07:55 PM

function onClicked()
if game.Players.LocalPlayer.CameraMode == 0 then
game:GetService('Players').LocalPlayer.CameraMode = 1
end
end

script.Parent.MouseButton1Down:connect(OnClicked)

--Maybe. Not totally sure.
Report Abuse
Termblue101 is not online. Termblue101
Joined: 07 Jun 2012
Total Posts: 3559
16 May 2013 07:59 PM
[ Content Deleted ]
Report Abuse
KillerKyle is online. KillerKyle
Joined: 29 Jul 2007
Total Posts: 6371
16 May 2013 07:59 PM
Output?
Report Abuse
noah is not online. noah
Joined: 11 Sep 2006
Total Posts: 18977
16 May 2013 08:02 PM
player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:connect(function(gui)
if player.CameraMode == "Classic" then
player.CameraMode = "LockFirstPerson"
end
end)

Put that in a text button.
Report Abuse
Termblue101 is not online. Termblue101
Joined: 07 Jun 2012
Total Posts: 3559
16 May 2013 08:04 PM
[ Content Deleted ]
Report Abuse
KillerKyle is online. KillerKyle
Joined: 29 Jul 2007
Total Posts: 6371
16 May 2013 08:05 PM
That output is not related to your script.
Report Abuse
Termblue101 is not online. Termblue101
Joined: 07 Jun 2012
Total Posts: 3559
16 May 2013 08:05 PM
[ Content Deleted ]
Report Abuse
Termblue101 is not online. Termblue101
Joined: 07 Jun 2012
Total Posts: 3559
16 May 2013 08:06 PM
[ Content Deleted ]
Report Abuse
noah is not online. noah
Joined: 11 Sep 2006
Total Posts: 18977
16 May 2013 08:07 PM
Local script and are you sure you're putting it into a text button?
Report Abuse
Termblue101 is not online. Termblue101
Joined: 07 Jun 2012
Total Posts: 3559
16 May 2013 08:10 PM
[ Content Deleted ]
Report Abuse
KillerKyle is online. KillerKyle
Joined: 29 Jul 2007
Total Posts: 6371
16 May 2013 08:14 PM
Your if statement is false. I think the original camera is "Custom". Not "Classic".

Have it print the Players camera Type.
Report Abuse
noah is not online. noah
Joined: 11 Sep 2006
Total Posts: 18977
16 May 2013 08:17 PM
@Killer
No, it's Classic.
Report Abuse
Termblue101 is not online. Termblue101
Joined: 07 Jun 2012
Total Posts: 3559
16 May 2013 08:28 PM
[ Content Deleted ]
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