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: how do we save positions

Previous Thread :: Next Thread 
captinsoap is not online. captinsoap
Joined: 24 Jan 2010
Total Posts: 9570
04 Jan 2014 09:25 PM
i tried

game.Players.PlayerAdded:connect(function (p)
p:WaitForDataReady()
p:LoadInstance(p.Character.Torso.CFrame)
end)
game.Players.PlayerRemoving:connect(function (pl)
pl:WaitForDataReady()
pl:SaveInstance(p.Character.Torso.CFrame)
end)





game.Players.PlayerAdded:connect(function (p)
p:WaitForDataReady()
p:LoadInstance(p.Character.Torso.CFrame)
end)
game.Players.PlayerRemoving:connect(function (pl)
pl:WaitForDataReady()
pl:SaveInstance(pl.Character.Torso.CFrame)
end)




but it don't work







the hillbilly of the west
Report Abuse
xSIXx is not online. xSIXx
Joined: 06 Aug 2010
Total Posts: 9202
04 Jan 2014 09:27 PM
erm

SaveInstance will work... on actual Instances

put the position in a CFrameValue, use SaveInstance on the CFrameValue
Report Abuse
captinsoap is not online. captinsoap
Joined: 24 Jan 2010
Total Posts: 9570
04 Jan 2014 09:29 PM
like

game.Players.PlayerAdded:connect(function (p)
p:WaitForDataReady()
p:LoadInstance(pl.Pos.Value)
end)
game.Players.PlayerRemoving:connect(function (pl)
pl:WaitForDataReady()
pl:SaveInstance(pl.Pos.Value)
end)





game.Players.PlayerAdded:connect(function (p)
p:WaitForDataReady()
p:LoadInstance(pl.Pos.Value)
end)
game.Players.PlayerRemoving:connect(function (pl)
pl:WaitForDataReady()
pl:SaveInstance(pl.Pos.Value)
end)

?
and then make a script when the player joins
it makes there position the same as pl.Pos?





the hillbilly of the west
Report Abuse
xSIXx is not online. xSIXx
Joined: 06 Aug 2010
Total Posts: 9202
04 Jan 2014 09:34 PM
no no no

not .Value

just the actual object

then you can :LoadInstance and it will load the CFrameValue

then you use .Value on that
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