Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tog = false
- script.Parent.MouseButton1Click:Connect(function()
- if tog == false then
- tog = true
- game:GetService("TweenService"):Create(script.Parent, TweenInfo.new(0.3), {BackgroundColor3 = Color3.fromRGB(158, 255, 47)}):Play()
- script.Parent:TweenPosition(UDim2.new(0.501, 0,0, 0),"Out","Linear",0.1,false,nil)
- else
- tog = false
- game:GetService("TweenService"):Create(script.Parent, TweenInfo.new(0.3), {BackgroundColor3 = Color3.fromRGB(255, 0, 0)}):Play()
- script.Parent:TweenPosition(UDim2.new(0, 0,0, 0),"Out","Linear",0.1,false,nil)
- end
- end)
Add Comment
Please, Sign In to add comment