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: Something wierd is happening.

Previous Thread :: Next Thread 
KingJacko is not online. KingJacko
Joined: 20 Jun 2008
Total Posts: 3944
22 Mar 2014 01:36 PM
look at the script first...

NP = Game.Lighting.PLANETNAME
Frame = script.Parent.Parent
PlanetRadius = Frame.PlanetRadius
PR = PlanetRadius.Radius.Text
PlanetPosition = Frame.PlanetPosition
PPX = PlanetPosition.X.Text
PPY = PlanetPosition.Y.Text
PPZ = PlanetPosition.Z.Text

function onClicked()
NewPlanet = NP:Clone()
NewPlanet.Parent = Game.Workspace
NewPlanet.Head.OSR.Scale = Vector3.new(PR,PR,PR)
NewPlanet.Head.CFrame = CFrame.new(PPX,PPY,PPZ)--right here
NewPlanet.Name = Frame.PlanetName.Text
end
script.Parent.MouseButton1Down:connect(onClicked)


the line that i put "right here" is the problem. Even when i change the gui text and click this gui button with this script inside, it still puts the planet in the same place :\ any ideas?

Report Abuse
FlashMasterJacob is not online. FlashMasterJacob
Joined: 10 Aug 2013
Total Posts: 59
22 Mar 2014 01:39 PM
OK, don't use the '.Text' part, you are preventing the updating of the value when you call it. It is like putting 'Var = game.Workspace.SomeValue.Value'

Use
PPX = PlanetPosition.X
tonumber(PPX.Text)
Report Abuse
KingJacko is not online. KingJacko
Joined: 20 Jun 2008
Total Posts: 3944
22 Mar 2014 01:40 PM
for each axis correct?
Report Abuse
KingJacko is not online. KingJacko
Joined: 20 Jun 2008
Total Posts: 3944
22 Mar 2014 01:42 PM
im still getting 0,50,0 tho
Report Abuse
KingJacko is not online. KingJacko
Joined: 20 Jun 2008
Total Posts: 3944
22 Mar 2014 01:49 PM
bump
Report Abuse
KingJacko is not online. KingJacko
Joined: 20 Jun 2008
Total Posts: 3944
22 Mar 2014 02:10 PM
bumpI
Report Abuse
KingJacko is not online. KingJacko
Joined: 20 Jun 2008
Total Posts: 3944
22 Mar 2014 02:18 PM
please bump
Report Abuse
KingJacko is not online. KingJacko
Joined: 20 Jun 2008
Total Posts: 3944
22 Mar 2014 02:25 PM
some help jeez
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
22 Mar 2014 02:29 PM
NP = Game.Lighting.PLANETNAME
Frame = script.Parent.Parent
PlanetRadius = Frame.PlanetRadius
PR = PlanetRadius.Radius
PlanetPosition = Frame.PlanetPosition
PPX = PlanetPosition.X
PPY = PlanetPosition.Y
PPZ = PlanetPosition.Z

function onClicked()
NewPlanet = NP:Clone()
NewPlanet.Parent = Game.Workspace
NewPlanet.Head.OSR.Scale = Vector3.new(PR.Text,PR.Text,PR.Text)
NewPlanet.Head.CFrame = CFrame.new(PPX.Text,PPY.Text,PPZ.Text)--right here
NewPlanet.Name = Frame.PlanetName.Text
end
script.Parent.MouseButton1Down:connect(onClicked)
Report Abuse
KingJacko is not online. KingJacko
Joined: 20 Jun 2008
Total Posts: 3944
22 Mar 2014 02:35 PM
its the same
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