Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

In roblox studio all my scripts work but actually in the game nothing works?

Asked by 6 years ago

local player = game.Players.LocalPlayer local leaderBoard = player:WaitForChild("leaderstats") local Robux = script.Parent.Robux local Rebirths = leaderBoard:WaitForChild("Rebirths") local PlayerRobux = leaderBoard:WaitForChild("Robux") local Upgrade = script.Parent.Upgrade local Upgrade1 = script.Parent.Upgrade1 local Upgrade2 = script.Parent.Upgrade2 local Upgrade3 = script.Parent.Upgrade3 local Reborn = script.Parent.Reborn local Reborninfo = script.Parent.Reborninfo local RebornButton = script.Parent.RebornButton local Close = script.Parent.Close local Close2 = script.Parent.Close2

Robux.MouseButton1Click:connect(function(clicked) PlayerRobux.Value = PlayerRobux.Value + 1 end)

Upgrade.MouseButton1Click:connect(function() Upgrade1.Visible = true Upgrade2.Visible = true Upgrade3.Visible = true Close.Visible = true end)

Close.MouseButton1Click:connect(function() Upgrade1.Visible = false Upgrade2.Visible = false Upgrade3.Visible = false Close.Visible = false end)

RebornButton.MouseButton1Click:connect(function() if PlayerRobux.Value >= 1000000 then PlayerRobux.Value = 0 Rebirths.Value = Rebirths.Value + 1 Robux.MouseButton1Click:connect(function(clicked) PlayerRobux.Value = PlayerRobux.Value + 90 end) end end)

Reborn.MouseButton1Click:connect(function() Close2.Visible = true RebornButton.Visible = true Reborninfo.Visible = true end)

Close2.MouseButton1Click:connect(function() Reborninfo.Visible = false Close2.Visible = false RebornButton.Visible = false end)

Upgrade1.MouseButton1Click:connect(function() if PlayerRobux.Value >= 500 then PlayerRobux.Value = PlayerRobux.Value - 500 Robux.MouseButton1Click:connect(function() PlayerRobux.Value = PlayerRobux.Value + 2 end) end end)

Upgrade2.MouseButton1Click:connect(function() if PlayerRobux.Value >= 1500 then PlayerRobux.Value = PlayerRobux.Value - 1500 Robux.MouseButton1Click:connect(function() PlayerRobux.Value = PlayerRobux.Value + 5 end) end end)

Upgrade3.MouseButton1Click:connect(function() if PlayerRobux.Value >= 8000 then PlayerRobux.Value = PlayerRobux.Value - 8000 Robux.MouseButton1Click:connect(function() PlayerRobux.Value = PlayerRobux.Value + 10 end) end end)

0
Would you mind putting that with blockcode? TheLightningRises 56 — 6y
0
ya, really JakePlays_TV 97 — 6y

Answer this question