|
| 15 Aug 2016 09:32 PM |
everything happpenes up nutil the point where the gui goes which makes the script stop so ye any help?
function loadScore(plyr, clickCounter)
local score = plyr:LoadNumber("Stage")
if not score == 0 then clickCounter.Value = score else print("Nothing to load../..score was 0") end
end
function onClicked(Player)
player = script.Parent.Parent.Parent.Parent.Parent player:WaitForDataReady() if player.DataReady == true then loadScore(player, player.leaderstats:findFirstChild(script.Parent.Parent.Parent.Configuration.Type.Value)) player.leaderstats:findFirstChild(script.Parent.Parent.Parent.Configuration.Type.Value).Value = player:LoadNumber("Stage") m = game.ReplicatedStorage.Loading m:Clone().Parent = game.Players.LocalPlayer.PlayerGui
script.Parent.Parent.Parent.Parent.Parent.Character.Humanoid.Health = 0 game:service("Debris"):AddItem(m, 3) else m = Instance.new("Message",player.PlayerGui) m.Text = "Wait until DataReady!" game:service("Debris"):AddItem(m, 3) end end
script.Parent.MouseButton1Click:connect(onClicked)
|
|
|
| Report Abuse |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 15 Aug 2016 10:26 PM |
- https://forum.roblox.com/Forum/ShowPost.aspx?PostID=195621950
|
|
|
| Report Abuse |
|