Advertisement
Surrealism

Untitled

Nov 23rd, 2018
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1. --Thanks for using Build2Script Plugin by jarredbcv!
  2. if (script:FindFirstChild("forCustomRun")~=nil) then
  3. local sc = script["forCustomRun"].Value
  4. assert(loadstring(sc))()
  5. return
  6. elseif (script:FindFirstChild("forCustomRunL")~=nil) then
  7. local locsc = workspace:FindFirstChild("_localrun")
  8. local sc = script["forCustomRunL"]
  9. if (locsc~=nil) then
  10. local loc = locsc:clone()
  11. loc["scrun"].Value = sc.Value
  12. loc.Name = script.Name
  13. for i,v in pairs(script:GetChildren()) do
  14. v:clone().Parent = loc
  15. end
  16. loc.Parent = script.Parent
  17. script:remove()
  18. return
  19. else
  20. assert(loadstring(sc.Value))()
  21. return
  22. end
  23. end
  24. local m = Instance.new("Model")
  25. m.Name = "Orange Justice"
  26. t1 = Instance.new("Tool", m)
  27. t1.Name = "Orange Justice"
  28. t1.GripPos = Vector3.new(0, 0, 0.200000003)
  29. t1.ToolTip = "It's also a great exercise move."
  30. t1.TextureId = "rbxassetid://1842268307"
  31. t1.CanBeDropped = false
  32. x1 = Instance.new("Animation", t1)
  33. x1.Name = "dance"
  34. x1.AnimationId = "rbxassetid://1840751339"
  35. s1 = script:clone()
  36. s1.Name = "PotionScript"
  37. s1.Disabled = false
  38. so1 = Instance.new("StringValue", s1)
  39. so1.Name = "forCustomRunL"
  40. so1.Value = [===[
  41. enabled = false
  42. local Tool = script.Parent;
  43. local dancer = nil
  44. local player = game.Players.LocalPlayer
  45.  
  46.  
  47.  
  48. function onActivated()
  49.  
  50.  
  51. --This will check if it is enabled and then either start dancing or stop dancing
  52. if enabled == false then
  53. local humanoid = Tool.Parent:FindFirstChild("Humanoid")
  54. local torso = Tool.Parent:FindFirstChild("Torso")
  55.  
  56. dancer = humanoid:LoadAnimation(Tool.dance)
  57. Tool.DanceObject.Value = dancer
  58. dancer:Play()
  59. Tool.dancepart.Position = player.Character.Head.Position
  60. Tool.dancepart.SongLoop:Play()
  61. enabled = true
  62. speed = player.Character.Humanoid.WalkSpeed
  63. player.Character.Humanoid.WalkSpeed = 0
  64. repeat
  65. wait(1)
  66. Tool.dancepart.Position = player.Character.Head.Position
  67. until enabled == false
  68.  
  69. else
  70. dancer:Stop()
  71. dancer:remove()
  72. Tool.dancepart.SongLoop:Stop()
  73. enabled = false
  74. player.Character.Humanoid.WalkSpeed = speed
  75. end
  76. end
  77.  
  78. function onUnequipped()
  79. dancer:Stop()
  80. dancer:remove()
  81. Tool.dancepart.SongLoop:Stop()
  82. enabled = false
  83. player.Character.Humanoid.WalkSpeed = speed
  84. end
  85.  
  86. Tool.Activated:connect(onActivated)
  87. Tool.Unequipped:connect(onUnequipped)
  88.  
  89. ]===]
  90. s1.Parent = t1
  91. v1 = Instance.new("ObjectValue", t1)
  92. v1.Name = "DanceObject"
  93. p1 = Instance.new("Part", t1)
  94. p1.BrickColor = BrickColor.new("Medium stone grey")
  95. p1.Transparency = 1
  96. p1.Name = "dancepart"
  97. p1.CFrame = CFrame.new(47.1999016, 10.1700258, -180.000031, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  98. p1.Anchored = true
  99. p1.CanCollide = false
  100. p1.Locked = true
  101. p1.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
  102. p1.BottomSurface = Enum.SurfaceType.Smooth
  103. p1.TopSurface = Enum.SurfaceType.Smooth
  104. x2 = Instance.new("Sound", p1)
  105. x2.Name = "SongLoop"
  106. x2.Pitch = 1
  107. x2.SoundId = "rbxassetid://1840761620"
  108. x2.Volume = 4
  109. x2.Looped = true
  110. x2.PlayOnRemove = false
  111. m.Parent = game:service("Workspace")
  112. m:MakeJoints()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement