Ducksneedhelp1

RickRollScript

Dec 24th, 2020
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.93 KB | None | 0 0
  1. local TweenService = game:GetService("TweenService")
  2. local ricky1 = game.Workspace.RickAstley1
  3. local ricky2 = game.Workspace.RickAstley2
  4.  
  5. local infoRicky1 = TweenInfo.new(
  6.  
  7.     5,
  8.     Enum.EasingStyle.Elastic,
  9.     Enum.EasingDirection.Out,
  10.     0,
  11.     true,
  12.     0
  13.  
  14. )
  15.  
  16. local infoRicky2 = TweenInfo.new(
  17.    
  18.     5,
  19.     Enum.EasingStyle.Elastic,
  20.     Enum.EasingDirection.Out,
  21.     0,
  22.     true,
  23.     0
  24. )
  25.  
  26. local propertiesRicky2 = {
  27.     Position = Vector3.new(141.84, 5.896, -15.64)
  28. }
  29.  
  30. local propertiesRicky1 = {
  31.     Position = Vector3.new(141.84, 5.896, -37.74)  
  32. }
  33.  
  34. local createTween1 = TweenService:Create(ricky1, infoRicky1, propertiesRicky1)
  35. local createTween2 = TweenService:Create(ricky2, infoRicky2, propertiesRicky2)
  36.  
  37. script.Parent.Touched:Connect(function()
  38.     game.Workspace.RickRolled:Play()
  39.     createTween1:Play()
  40.     wait(0.1)
  41.     createTween2:Play()
  42.    
  43. end)
  44.  
  45. game.Workspace.EndPosition.Touched:Connect(function()
  46.     game.Workspace.RickRolled:Pause()
  47.    
  48.    
  49. end)
Advertisement
Add Comment
Please, Sign In to add comment