local podium1 = game.Workspace.podium1 local button = script.Parent local debounce = true button.MouseButton1Click:Connect(function() if debounce == true then debounce=false for i = 0,.15,.001 do podium1:SetPrimaryPartCFrame(podium1:GetPrimaryPartCFrame()* CFrame.new(i,0,0)) wait() podium1.bottomlight.SurfaceLight.Color = Color3.new(.745098, 0.407843, 0.384314) podium1.bottomlight.Smoke.Color = Color3.new(.745098, 0.407843, 0.384314) else debounce=true for i = 0, .15, 001 do podium1:SetPrimaryPartCFrame(podium1:GetPrimaryPartCFrame()* CFrame.new(-i,0,0)) wait() podium1.bottomlight.SurfaceLight.Color = Color3.new(0.972549, 0.972549, 0.972549) podium1.bottomlight.Smoke.Color = Color3.new(0.972549, 0.972549, 0.972549) end end end)
Basically, I'm trying to make this thing wherein you click this button (a textbutton), and it makes this podium move, stop and its smoke and surface light becomes red. Afterwards, when I click the textbutton again, it goes back to its original position and the colors of the surfacelight and the smoke turn blue. The thing is, when I click the button, nothing is happening. A little help?