https://www.youtube.com/watch?v=R8W6T4wMSl4
my script,
Script type: normal script because it's a 1 player game.
local tra = game.Players.LocalPlayer.leaderstats.traven.Value local human = game.Players.LocalPlayer.Name script.Parent.MouseButton1Click:Connect(function() if tra == 1 then print("1") end if tra == 2 then game.Lighting["2"].Parent = game.Workspace wait(0.01) game.Workspace["1"].Parent = game.Lighting end if tra == 3 then game.Lighting["3"].Parent = game.Workspace wait(0.01) game.Workspace["1"].Parent = game.Lighting end if tra == 4 then game.Lighting["4"].Parent = game.Workspace wait(0.01) game.Workspace["1"].Parent = game.Lighting end if tra == 5 then game.Lighting["5"].Parent = game.Workspace wait(0.01) game.Workspace["1"].Parent = game.Lighting end end)
it does the same ingame too, not just studio.
I am not too sure that this will solve what you need,
Maybe try
if tra == 1 then print("1") end if tra == 2 then game.Lighting["2"].Parent = game.Workspace wait(0.01) game.Workspace["1"].Parent = game.Lighting print("2") end if tra == 3 then game.Lighting["3"].Parent = game.Workspace wait(0.01) game.Workspace["1"].Parent = game.Lighting print("3") end if tra == 4 then game.Lighting["4"].Parent = game.Workspace wait(0.01) game.Workspace["1"].Parent = game.Lighting print("4") end if tra == 5 then game.Lighting["5"].Parent = game.Workspace wait(0.01) game.Workspace["1"].Parent = game.Lighting print("5") end end)
Hey guys i got it working, i just replaced tra with game.Players.LocalPlayer.leaderstats.traven.Value, im not the best with scripting but i think it was because it was only looking at traven once and not "refreshing"
Hey guys i got it working, i just replaced tra with game.Players.LocalPlayer.leaderstats.traven.Value, im not the best with scripting but i think it was because it was only looking at traven once and not "refreshing"
hey you! have you ever heard of enes? if you are in trouble, better call enes!