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.

5 comments
I don't understand ????
do you have any other scripts that is using the traven too?
yes, at the end of each level is a button that you press where traven turns to 1,2,3,4,5 depending on the level
You say that's a normal script, but normal scripts cant use LocalPlayer, only local scripts can use LocalPlayer. I don't really understand your question. Just so you know, using local scripts sets things on the client's sides, and normal scripts sets things on the server's side (If that makes sense).
But what is the point of it being client side if it's a 1 player game?