|
| 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 |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
| 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 |
|
|
| |
|
| |
|
| |
|
| |
|
|
| 21 May 2016 06:23 PM |
| now im just having fun :-) |
|
|
| Report Abuse |
|
|
| |
|
Qraotic
|
  |
| Joined: 12 Mar 2016 |
| Total Posts: 63 |
|
| |
|
|
| 21 May 2016 06:32 PM |
| It doesn't need to be rewritten. It just needs the unnecessary things removed from it. |
|
|
| Report Abuse |
|
|
|
| 21 May 2016 06:33 PM |
| thanks for the posts guys :) reached a milestone =) |
|
|
| Report Abuse |
|
|
| |
|
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 |
|
|
|
| 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 |
|
|
| |
|
| |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
| |
|