I made a gui and whenever you click the shadow button it says “Shadow disabled”
aight so let’s get to the point, the issue is, my text is going sideways instead of moving up ways.
this is my script:
local lighting = game.Lighting
local button = script.Parent
button.MouseButton1Click:Connect(function()
if lighting.GlobalShadows == true then
local activated = Instance.new("TextLabel",button)
activated.Position = UDim2.new(0.418, 0,0.084, 0) -- Position set to next to the button
activated:TweenPosition(UDim2.new(0, 0, -1.5, 0)) --Moving text
activated.Text = "Shadows Disabled"
lighting.GlobalShadows = false
else
lighting.GlobalShadows = true
end
end)