Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local TweenService = game:GetService("TweenService")
- local ricky1 = game.Workspace.RickAstley1
- local ricky2 = game.Workspace.RickAstley2
- local infoRicky1 = TweenInfo.new(
- 5,
- Enum.EasingStyle.Elastic,
- Enum.EasingDirection.Out,
- 0,
- true,
- 0
- )
- local infoRicky2 = TweenInfo.new(
- 5,
- Enum.EasingStyle.Elastic,
- Enum.EasingDirection.Out,
- 0,
- true,
- 0
- )
- local propertiesRicky2 = {
- Position = Vector3.new(141.84, 5.896, -15.64)
- }
- local propertiesRicky1 = {
- Position = Vector3.new(141.84, 5.896, -37.74)
- }
- local createTween1 = TweenService:Create(ricky1, infoRicky1, propertiesRicky1)
- local createTween2 = TweenService:Create(ricky2, infoRicky2, propertiesRicky2)
- script.Parent.Touched:Connect(function()
- game.Workspace.RickRolled:Play()
- createTween1:Play()
- wait(0.1)
- createTween2:Play()
- end)
- game.Workspace.EndPosition.Touched:Connect(function()
- game.Workspace.RickRolled:Pause()
- end)
Advertisement
Add Comment
Please, Sign In to add comment