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 » Scripters
Home Search
 

Need help with script

Previous Thread :: Next Thread 
cambo296 is not online. cambo296
Joined: 02 Jan 2012
Total Posts: 576
04 Apr 2016 08:56 PM
It wont make leaderstats O.o


wait(3)



local xpup = game.Players.Player.leaderstats.Level.Value


game.Players.PlayerAdded:connect(function()

local leaderstats = Instance.new("Model")
leaderstats.Name = "leaderstats"
leaderstats.Parent = game.Players.LocalPlayer

local gold = Instance.new("IntValue")
gold.Name = "Gold"
gold.Value = 0
gold.Parent = leaderstats

local xp = Instance.new("IntValue")
xp.Name = "Exp"
xp.Value = 0
xp.Parent = leaderstats
xp.Max = 100

local Level = Instance.new("IntValue")
Level.Name = "Level"
Level.Value = 0
Level.Parent = leaderstats
Level.Max = 500

local xpup = game.Players.Player.leaderstats.Level.Value

if xp == 100 then

game.Players.Player.stats.Level.Value = game.Players.Player.stats.Level.Value + 1

if xpup > xp then
xp = xp * .25
end




end






end)


Cambo296
Report Abuse
ExpensiveGaming is not online. ExpensiveGaming
Joined: 01 Apr 2013
Total Posts: 783
04 Apr 2016 09:00 PM
local leaderstats = Instance.new("IntValue")

#code print("Why did Adele cross the road?") wait(3) print("To say hello from the other side!")
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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