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: Loadstring/number/boolean

Previous Thread :: Next Thread 
sonicdiablo is not online. sonicdiablo
Joined: 05 Feb 2009
Total Posts: 1661
28 Jul 2011 12:10 AM
Does it create a Number/string/boolean value?
Report Abuse
NecroBumpist is not online. NecroBumpist
Joined: 12 Sep 2010
Total Posts: 4198
28 Jul 2011 12:12 AM
loadstring() creates a function value.
Report Abuse
sonicdiablo is not online. sonicdiablo
Joined: 05 Feb 2009
Total Posts: 1661
28 Jul 2011 12:19 AM
then i wont be able to do

local success = pcall(function() s = player:LoadNumber("key") end)

if success then
s.Parent = ...
Report Abuse
TheBeastsup11 is not online. TheBeastsup11
Joined: 19 Jun 2011
Total Posts: 142
28 Jul 2011 12:49 AM
loadstring() = value.stingValue:nil,=1,0
wait(0.1)
end)
end)
end
start()
while true do
script.Parent.BrickColor = BrickColor.random()
end)

I fail! sometimes ._.
Report Abuse
NecroBumpist is not online. NecroBumpist
Joined: 12 Sep 2010
Total Posts: 4198
28 Jul 2011 12:53 AM
Oh you meant Data Persistence.
I thought you meant loadstring()

:LoadString() will return a string if it works
:LoadNumber() will return a number if it works
:LoadBool() will return a boolean if it works.
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