|
| 15 Jul 2014 02:33 PM |
function SaveScore(plyr, score) plyr:SaveNumber("stage", score) end
function onClicked()
player = script.Parent.Parent.Parent.Parent.Parent player:WaitForDataReady() if player.DataReady == true then SaveScore(player, player.leaderstats:findFirstChild(script.Parent.Parent.Parent.Configuration.Type.Value).Value) m = Instance.new("Message",player.PlayerGui) m.Text = script.Parent.Parent.Parent.Configuration.Type.Value.. " saved!" 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)
http://www.roblox.com/THE-EASIEST-OBBY-IN-ROBLOX-FireSliding-place?id=165940009 |
|
|
| Report Abuse |
|
|
| 15 Jul 2014 02:34 PM |
halp!
http://www.roblox.com/THE-EASIEST-OBBY-IN-ROBLOX-FireSliding-place?id=165940009 |
|
|
| Report Abuse |
|
|
| 15 Jul 2014 02:36 PM |
comeon..
http://www.roblox.com/THE-EASIEST-OBBY-IN-ROBLOX-FireSliding-place?id=165940009 |
|
|
| Report Abuse |
|