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
 

Re: so i have this script

Previous Thread :: Next Thread 
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
21 May 2016 05:15 PM
local Stats = game.ReplicatedStorage:WaitForChild("Stats")
game.Players.PlayerAdded:connect(function(Player)
local AddGear = game.ReplicatedStorage:WaitForChild("AddGear")
local LS = Instance.new("Folder", Player)
LS.Name = "leaderstat"
Instance.new("IntValue", LS).Name = "CurrentXP"
local LV = Instance.new("IntValue", LS)
LV.Name = "Level"
LV.Value = 1
local IsInMatch=Instance.new("BoolValue", LS)
IsInMatch.Name="IsInMatch"
local Inventory=Instance.new("StringValue", LS)
Inventory.Name="Inventory"
AddGear:FireClient(Player,game.ReplicatedStorage:WaitForChild("Item_Library"):WaitForChild("LinkedSword"))
for x=0,1 do
AddGear:FireClient(Player,game.ReplicatedStorage.Item_Library:WaitForChild("Minions-YellowPaintGun"))
end
for x=0,7 do
AddGear:FireClient(Player,game.ReplicatedStorage.Item_Library:WaitForChild("Minions-YellowPaintGun"))
end
for x=0,7 do
AddGear:FireClient(Player,game.ReplicatedStorage.Item_Library:WaitForChild("Minions-YellowPaintGun"))
end
for x=0,7 do
AddGear:FireClient(Player,game.ReplicatedStorage.Item_Library:WaitForChild("LinkedSword"))
end
end)

Stats.OnServerEvent:connect(function(Player, Function, stuff, inventory)
if Function == "UpdateLevel" then
Player.leaderstat.Level.Value = Player.leaderstat.Level.Value + 1
elseif Function == "UpdateXP" then
Player.leaderstat.CurrentXP.Value = stuff
elseif Function == "UpdateInventory" then
Player.leaderstat.Inventory.Value = inventory
end
end)

This script makes it so that there's a folder in inventory called leaderstat, which has all my level goodies in there.

In ReplicatedStorage, there is Stats, AddGear, SendCode, MakeCode, and item_library

When I try to remove the part I think i should remove, the level gui doesnt work anymore. I remove everything from ReplicatedStorage except Stats, and I want the UpdateXP and UpdateLevel thing to still work, what should I remove from script now that I removed those thingys
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
21 May 2016 05:21 PM
anyone help?
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
21 May 2016 05:26 PM
b
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
21 May 2016 05:31 PM
b2
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
21 May 2016 05:34 PM
b3
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
21 May 2016 05:36 PM
b4
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
21 May 2016 05:37 PM
b5
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
21 May 2016 05:47 PM
b6
Report Abuse
IlluminatiCat is not online. IlluminatiCat
Joined: 21 Feb 2009
Total Posts: 1216
21 May 2016 05:52 PM
Dont use free models
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
21 May 2016 06:01 PM
It's my old script, but I'm not using the inventory system anymore because it's a different kind of inventory system that doesn't need the folder to be used, but i still want the folder to appear for the LevelGUI
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
21 May 2016 06:10 PM
b whatever the number is
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
21 May 2016 06:14 PM
b again
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
21 May 2016 06:17 PM
b agaiinn :)
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
21 May 2016 06:22 PM
tgfer
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
21 May 2016 06:23 PM
now im just having fun :-)
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
21 May 2016 06:30 PM
bump bump bump
Report Abuse
Qraotic is not online. Qraotic
Joined: 12 Mar 2016
Total Posts: 63
21 May 2016 06:31 PM
rewrite the script
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
21 May 2016 06:32 PM
It doesn't need to be rewritten. It just needs the unnecessary things removed from it.
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
21 May 2016 06:33 PM
thanks for the posts guys :) reached a milestone =)
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
21 May 2016 06:36 PM
5500 :)
Report Abuse
Qraotic is not online. Qraotic
Joined: 12 Mar 2016
Total Posts: 63
21 May 2016 06:37 PM
then remove the things you want to remove with highlight + delete

if I were you, i'd read over it, and delete all connections from LevelGUI to the things you want to remove
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
21 May 2016 06:38 PM
I don't want you to tell me how to do it. I know how to it. I asked for you to help me remove them, because I've tried to remove them and I must've removed too much because for the 6th time, I lost the leaderstat folder when I play solo
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
21 May 2016 06:43 PM
man im going for 5600!
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
21 May 2016 06:59 PM
going for 5600 [1]
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
21 May 2016 07:16 PM
learn how to script
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