Advertisement
DrakerMaker

Turntable

Dec 3rd, 2019 (edited)
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.27 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. script.Parent = Player.Character
  5.  
  6. --RemoteEvent for communicating
  7. local Event = Instance.new("RemoteEvent")
  8. Event.Name = "UserInput_Event"
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local function fakeEvent()
  12. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  13. t.connect = t.Connect
  14. return t
  15. end
  16.  
  17. --Creating fake input objects with fake variables
  18. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  19. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  20. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  21. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  22. end}
  23. --Merged 2 functions into one by checking amount of arguments
  24. CAS.UnbindAction = CAS.BindAction
  25.  
  26. --This function will trigger the events that have been :Connect()'ed
  27. local function te(self,ev,...)
  28. local t = m[ev]
  29. if t and t._fakeEvent and t.Function then
  30. t.Function(...)
  31. end
  32. end
  33. m.TrigEvent = te
  34. UIS.TrigEvent = te
  35.  
  36. Event.OnServerEvent:Connect(function(plr,io)
  37. if plr~=Player then return end
  38. if io.isMouse then
  39. m.Target = io.Target
  40. m.Hit = io.Hit
  41. else
  42. local b = io.UserInputState == Enum.UserInputState.Begin
  43. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  44. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  45. end
  46. for _,t in pairs(CAS.Actions) do
  47. for _,k in pairs(t.Keys) do
  48. if k==io.KeyCode then
  49. t.Function(t.Name,io.UserInputState,io)
  50. end
  51. end
  52. end
  53. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  54. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  55. end
  56. end)
  57. Event.Parent = NLS([==[
  58. local Player = game:GetService("Players").LocalPlayer
  59. local Event = script:WaitForChild("UserInput_Event")
  60.  
  61. local UIS = game:GetService("UserInputService")
  62. local input = function(io,a)
  63. if a then return end
  64. --Since InputObject is a client-side instance, we create and pass table instead
  65. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  66. end
  67. UIS.InputBegan:Connect(input)
  68. UIS.InputEnded:Connect(input)
  69.  
  70. local Mouse = Player:GetMouse()
  71. local h,t
  72. --Give the server mouse data 30 times every second, but only if the values changed
  73. --If player is not moving their mouse, client won't fire events
  74. while wait(1/30) do
  75. if h~=Mouse.Hit or t~=Mouse.Target then
  76. h,t=Mouse.Hit,Mouse.Target
  77. Event:FireServer({isMouse=true,Target=t,Hit=h})
  78. end
  79. end]==],Player.Character)
  80. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  81. end
  82. warn([[
  83. Project Turntable
  84.  
  85. Over a new leaf..
  86. What next will you find?
  87.  
  88. By DrakerMaker
  89.  
  90. Soundtrack
  91. Balanced - Gloomy[Loop] "rbxassetid://145990499"
  92. VOID - Runmo - End of the Universe "rbxassetid://4441971665"
  93. INSANITY - Enigma SFX "rbxassetid://1837111398"
  94. Miraclistic - Servants of The Scourge "rbxassetid://2749617431"
  95. ]])
  96. function wbtwe(Part0, Part1, C0)
  97. local weld = Instance.new("Weld", Part0)
  98. weld.Part0 = Part0
  99. weld.Part1 = Part1
  100. weld.C0 = Part1.CFrame:inverse() *Part1.CFrame *C0
  101. return weld
  102. end
  103. idle = 5
  104. walk = 5
  105. deb = false
  106. animt = true
  107. mode = 1
  108. hrw = wbtwe(owner.Character.Torso, owner.Character.HumanoidRootPart, CFrame.new(0, 0, 0) *CFrame.Angles(0, 0, 0))
  109. law = wbtwe(owner.Character["Left Arm"], owner.Character.Torso, CFrame.new(1.5, 0, 0) *CFrame.Angles(0, 25, 0))
  110. raw = wbtwe(owner.Character["Right Arm"], owner.Character.Torso, CFrame.new(-1.5, 0, 0) *CFrame.Angles(0, 0, 0))
  111. llw = wbtwe(owner.Character["Left Leg"], owner.Character.HumanoidRootPart, CFrame.new(0.45, 2.1, 0) *CFrame.Angles(0, 25, 0))
  112. rlw = wbtwe(owner.Character["Right Leg"], owner.Character.HumanoidRootPart, CFrame.new(-0.4, 2.1, 0) *CFrame.Angles(0, 0, 0))
  113. hw = wbtwe(owner.Character.Head, owner.Character.Torso, CFrame.new(0, -1.5, 0) *CFrame.Angles(0, 0, 0))
  114. local BillboardGui = Instance.new("BillboardGui")
  115. local Frame = Instance.new("Frame")
  116. local Text = Instance.new("TextBox")
  117. BillboardGui.Name = "Type"
  118. BillboardGui.Parent = owner.Character.Head
  119. BillboardGui.Active = true
  120. BillboardGui.Size = UDim2.new(7.5, 0, 5, 0)
  121. BillboardGui.StudsOffset = Vector3.new(0, 6, 0)
  122.  
  123. Frame.Name = "Framer"
  124. Frame.Parent = BillboardGui
  125. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  126. Frame.BackgroundTransparency = 0.6
  127. Frame.BorderSizePixel = 0
  128. Frame.Position = UDim2.new(0.209999993, 0, 0.209999993, 0)
  129. Frame.Selectable = true
  130. Frame.Size = UDim2.new(0.600000024, 0, 0.699999988, 0)
  131.  
  132. Text.Name = "Labeler"
  133. Text.Parent = Frame
  134. Text.BackgroundColor3 = Color3.new(0, 0, 0)
  135. Text.BackgroundTransparency = 1
  136. Text.BorderColor3 = Color3.new(0, 0, 0)
  137. Text.Position = UDim2.new(0.200000003, 0, 0.150000006, 0)
  138. Text.Size = UDim2.new(0.600000024, 0, 0.699999988, 0)
  139. Text.ClearTextOnFocus = false
  140. Text.Font = Enum.Font.SourceSans
  141. Text.MultiLine = true
  142. Text.Text = "Balanced"
  143. Text.TextColor3 = Color3.new(1, 1, 1)
  144. Text.TextScaled = true
  145. Text.TextSize = 14
  146. Text.TextStrokeTransparency = 0
  147. Text.TextWrapped = true
  148. TextRotate = 1
  149. local sound = Instance.new("Sound", owner.Character.Head)
  150. sound.Looped = true
  151. sound.SoundId = "rbxassetid://145990499"
  152. sound.Volume = 3
  153. sound:Play()
  154. attacktaunt = Instance.new("Sound", owner.Character.Head)
  155. attacktaunt.Volume = 8
  156. attacktaunt.SoundId = "rbxassetid://1718412034"
  157. spawn(function()
  158. while game:GetService("RunService").Stepped:wait() do
  159. if mode == 1 then
  160. llw.Part1 = owner.Character.HumanoidRootPart
  161. rlw.Part1 = owner.Character.HumanoidRootPart
  162. TextRotate = TextRotate +0.09
  163. Frame.Rotation = Frame.Rotation -math.cos(TextRotate) *0.3
  164. Text.Rotation = Text.Rotation +math.sin(TextRotate) *0.3
  165. end
  166. if mode == 2 then
  167. Frame.Rotation = math.random(-2, 2)
  168. Text.Rotation = math.random(-2, 2)
  169. Text.TextColor3 = BrickColor.new("Really black").Color
  170. Frame.BackgroundColor3 = BrickColor.new("Plum").Color
  171. llw.Part1 = owner.Character.Torso
  172. rlw.Part1 = owner.Character.Torso
  173. pick = math.random(1,5)
  174. if pick == 1 then
  175. Text.Text = ".̨͙̝̙̿͗͛̍͠.̛͗VOID .̨͙̝̙̿͗͛̍͠.̛͗.͈̃̌̃̀"
  176. end
  177. if pick == 2 then
  178. Text.Text = ".VOID ..͏̨̮̭̎̽ͤ́ͪ"
  179. end
  180. if pick == 3 then
  181. Text.Text = ".̮̮͍͑̏ͯ͝.̷̛̜̭̂͆ VOID .̮̮͍͑̏ͯ͝.͉"
  182. end
  183. if pick == 4 then
  184. Text.Text = ".̴̧̮̌͂̚.̸̵̢̠͚̻ͫ̎̓̍ VOID .̴̧̮̌͂̚.̸̠͚̻ͫ̎̓"
  185. end
  186. if pick == 5 then
  187. Text.Text = ".̻̀̊VOID.̳̓̓.̵͉͖̟͢͠ "
  188. end
  189. end
  190. if mode == 3 then
  191. llw.Part1 = owner.Character.HumanoidRootPart
  192. rlw.Part1 = owner.Character.HumanoidRootPart
  193. Frame.Rotation = math.random(-15, 15)
  194. Text.Rotation = math.random(-15, 15)
  195. Frame.BackgroundColor3 = BrickColor.Random().Color
  196. Text.TextColor3 = BrickColor.Random().Color
  197. end
  198. if mode == 4 then
  199. llw.Part1 = owner.Character.Torso
  200. rlw.Part1 = owner.Character.Torso
  201. Frame.Rotation = math.random(-2, 2)
  202. Text.Rotation = math.random(-2, 2)
  203. Text.TextColor3 = BrickColor.new("Institutional white").Color
  204. end
  205. end
  206. end)
  207. mouse.KeyDown:connect(function(key)
  208. if key == "f" then
  209. if deb == false then
  210. deb = true
  211. mode = mode +1
  212. local explode = Instance.new("Part", workspace)
  213. explode.CFrame = owner.Character.Torso.CFrame *CFrame.Angles(math.random(-999, 999), math.random(-999, 999), math.random(-999, 999))
  214. explode.Material = "Neon"
  215. explode.Size = Vector3.new(5, 5, 5)
  216. explode.CanCollide = false
  217. explode.Anchored = true
  218. local soundexp = Instance.new("Sound", explode)
  219. soundexp.SoundId = "rbxassetid://814652778"
  220. soundexp.Volume = 8
  221. soundexp:Play()
  222. if mode == 2 then
  223. sound:Stop()
  224. sound.SoundId = "rbxassetid://4441971665"
  225. sound:Play()
  226. Text.Text = ".̸̷̺̹ VOID .̨͙̝̙̿͗͛̍͠ "
  227. warn([[
  228. Void
  229. "You've fallen. Straight into my trap!"
  230. ]])
  231. owner.Character.Humanoid.WalkSpeed = 26
  232. end
  233. if mode == 3 then
  234. sound:Stop()
  235. sound.SoundId = "rbxassetid://1837111398"
  236. sound:Play()
  237. Text.Text = "INSANITY"
  238. warn([[
  239. I N S A N I T Y
  240. "I F EEL N OTH IN G, I H A VE NO LI VE S L E FT, Y ET I ST IL L LI V E."
  241. ]])
  242. owner.Character.Humanoid.WalkSpeed = 9
  243. end
  244. if mode == 4 then
  245. sound:Stop()
  246. sound.SoundId = "rbxassetid://2749617431"
  247. sound:Play()
  248. Text.Text = "Miraclistic"
  249. warn([[
  250. Miraclistic
  251. "It's only a matter of time."
  252. ]])
  253. owner.Character.Humanoid.WalkSpeed = 46
  254. end
  255. deb = false
  256. for i = 1,75 do
  257. game:GetService("RunService").Stepped:wait()
  258. explode.CFrame = owner.Character.Torso.CFrame *CFrame.Angles(math.random(-999, 999), math.random(-999, 999), math.random(-999, 999))
  259. explode.Size = explode.Size +Vector3.new(1, 1, 1)
  260. explode.Transparency = explode.Transparency +0.05
  261. explode.Color = Frame.BackgroundColor3
  262. end
  263. explode:Destroy()
  264. end
  265. end
  266. if key == "e" then
  267. if deb == false then
  268. if mode == 2 then
  269.  
  270. end
  271. if mode == 4 then
  272. attacktaunt:Play()
  273. deb = true
  274. animt = false
  275. for i = 1,20 do
  276. game:GetService("RunService").Stepped:Wait()
  277. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, 1) *CFrame.Angles(-1, 0, 0), 0.1)
  278. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, 0, 0) , 0.2)
  279. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.34, 0.9, 0) *CFrame.Angles(2.85, 25.1, 0), 0.2)
  280. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.34, 0.9, 0) *CFrame.Angles(2.85, 0, 0), 0.2)
  281. llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.45, 2.1, 0) *CFrame.Angles(0, 25.1, 0), 0.2)
  282. rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.45, 2.1, 0) *CFrame.Angles(0, 0, 0), 0.2)
  283. end
  284. for i = 1,20 do
  285. game:GetService("RunService").Stepped:Wait()
  286. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, -1) *CFrame.Angles(1, 0, 0), 0.1)
  287. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, 0, 0) , 0.2)
  288. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.34, 0, 0) *CFrame.Angles(0, 25.1, 0), 0.2)
  289. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.34, 0, 0) *CFrame.Angles(0, 0, 0), 0.2)
  290. llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.45, 2.1, 0) *CFrame.Angles(0, 25.1, 0), 0.2)
  291. rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.45, 2.1, 0) *CFrame.Angles(0, 0, 0), 0.2)
  292. end
  293. local explode = Instance.new("Part", workspace)
  294. explode.CFrame = mouse.Hit *CFrame.Angles(math.random(-999, 999), math.random(-999, 999), math.random(-999, 999))
  295. explode.Material = "Neon"
  296. explode.Size = Vector3.new(5, 5, 5)
  297. explode.CanCollide = false
  298. explode.Anchored = true
  299. local soundexp = Instance.new("Sound", explode)
  300. soundexp.SoundId = "rbxassetid://814652778"
  301. soundexp.Volume = 5
  302. soundexp:Play()
  303. animt = true
  304. deb = false
  305. explode.Touched:connect(function(p)
  306. if p.Parent:FindFirstChildOfClass("Humanoid") then
  307. if explode.Transparency < 1 then
  308. if p.Parent.Name ~= owner.Name then
  309. p.Parent:BreakJoints()
  310. end
  311. end
  312. end
  313. end)
  314. for i = 1,175 do
  315. game:GetService("RunService").Stepped:wait()
  316. explode.CFrame = explode.CFrame *CFrame.Angles(math.random(-999, 999), math.random(-999, 999), math.random(-999, 999))
  317. explode.Size = explode.Size +Vector3.new(2, 2, 2)
  318. explode.Transparency = explode.Transparency +0.02
  319. explode.Color = Frame.BackgroundColor3
  320. end
  321. explode:Destroy()
  322. end
  323. end
  324. end
  325. end)
  326. anim = coroutine.wrap(function()
  327. while game:GetService("RunService").Stepped:wait() do
  328. if animt == true then
  329. if mode == 1 then
  330. if owner.Character.HumanoidRootPart.Velocity.Magnitude < 1 then
  331. idle = idle +0.1
  332. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, math.cos(idle) *0.3, 0), 0.1)
  333. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, 0), 0.1)
  334. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.5, math.cos(idle) *0.3, 0) *CFrame.Angles(0, 25, 0), 0.1)
  335. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5, math.cos(idle) *0.3, 0) *CFrame.Angles(0, 0, 0), 0.1)
  336. llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.45, 2.1, 0) *CFrame.Angles(0, 25, 0), 0.1)
  337. rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.4, 2.1, 0) *CFrame.Angles(0, 0, 0), 0.1)
  338. end
  339. if owner.Character.HumanoidRootPart.Velocity.Magnitude > 1 then
  340. walk = walk +0.1
  341. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, math.cos(walk) *0.3, 0), 0.1)
  342. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, 0), 0.1)
  343. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.5, math.cos(idle) *0.3, math.sin(walk) *0.3) *CFrame.Angles(math.sin(walk) *0.3, 25, 0), 0.1)
  344. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5, math.cos(idle) *0.3, math.sin(walk) *-0.3) *CFrame.Angles(math.sin(walk) *-0.3, 0, 0), 0.1)
  345. llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.45, 2.1, 0) *CFrame.Angles(math.sin(walk) *-0.3, 25, 0), 0.1)
  346. rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.4, 2.1, math.sin(walk) *-0.3) *CFrame.Angles(math.sin(walk) *0.3, 0, 0), 0.1)
  347. end
  348. end
  349. if mode == 2 then
  350. if owner.Character.HumanoidRootPart.Velocity.Magnitude < 1 then
  351. idle = idle +0.1
  352. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, -2 + math.sin(idle) *0.2, 0), 0.1)
  353. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, 0), 0.1)
  354. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.5, math.cos(idle) *0.3, 0) *CFrame.Angles(0, 25, 0.2), 0.1)
  355. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5, math.cos(idle) *0.3, 0) *CFrame.Angles(0, 0, -0.2), 0.1)
  356. llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.45, 1.7, 0.6) *CFrame.Angles(0, 25, 0), 0.1)
  357. rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.4, 2.1, 0) *CFrame.Angles(0, 0, 0), 0.1)
  358. end
  359. if owner.Character.HumanoidRootPart.Velocity.Magnitude > 1 then
  360. walk = walk +0.1
  361. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, -2 + math.sin(walk) *0.2, math.cos(walk) *0.6) *CFrame.Angles(0.3, 0, 0), 0.1)
  362. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, 0.3) *CFrame.Angles(-0.3, 0, 0), 0.1)
  363. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.5 , math.cos(idle) *0.3, 0) *CFrame.Angles(0.5, 25, 0), 0.1)
  364. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5 , math.cos(idle) *0.3, 0) *CFrame.Angles(0.5, 0, 0), 0.1)
  365. llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.45, 2.1, 0) *CFrame.Angles(0.5, 25, 0), 0.1)
  366. rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.4, 2.1, 0) *CFrame.Angles(0.5, 0, 0), 0.1)
  367. end
  368. end
  369. if mode == 2 then
  370. if owner.Character.HumanoidRootPart.Velocity.Magnitude < 1 then
  371. idle = idle +0.1
  372. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, -2 + math.sin(idle) *0.2, 0), 0.1)
  373. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, 0), 0.1)
  374. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.5, math.cos(idle) *0.3, 0) *CFrame.Angles(0, 25, 0.2), 0.1)
  375. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5, math.cos(idle) *0.3, 0) *CFrame.Angles(0, 0, -0.2), 0.1)
  376. llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.45, 1.7, 0.6) *CFrame.Angles(0, 25, 0), 0.1)
  377. rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.4, 2.1, 0) *CFrame.Angles(0, 0, 0), 0.1)
  378. end
  379. if owner.Character.HumanoidRootPart.Velocity.Magnitude > 1 then
  380. walk = walk +0.1
  381. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, -2 + math.sin(walk) *0.2, math.cos(walk) *0.2) *CFrame.Angles(0.3, 0, 0), 0.1)
  382. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0, -1.5, 0.3) *CFrame.Angles(-0.3, 0, 0), 0.1)
  383. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.5 , math.cos(idle) *0.3, 0) *CFrame.Angles(0.5, 25, 0), 0.1)
  384. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5 , math.cos(idle) *0.3, 0) *CFrame.Angles(0.5, 0, 0), 0.1)
  385. llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.45, 2.1, 0) *CFrame.Angles(0.5, 25, 0), 0.1)
  386. rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.4, 2.1, 0) *CFrame.Angles(0.5, 0, 0), 0.1)
  387. end
  388. end
  389. if mode == 3 then
  390. if owner.Character.HumanoidRootPart.Velocity.Magnitude < 1 then
  391. idle = idle +0.1
  392. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame * CFrame.new(0, math.cos(idle) *0.6, 0.3) *CFrame.Angles(0.3 +math.rad(math.random(-1,1)), math.rad(math.random(-1,1)), math.rad(math.random(-1,1))), 0.5)
  393. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(0, -1.45, -0.8) *CFrame.Angles(0.8+math.rad(math.random(-1,1)), math.rad(math.random(-1,1)), math.rad(math.random(-1,1))), 0.5)
  394. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(1.5, 0.2, 0.3) *CFrame.Angles(-0.3 +math.rad(math.random(-1,1)), 25 +math.rad(math.random(-1,1)), math.rad(math.random(-1,1))), 0.5)
  395. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(-1.5, 0.2, 0.3) *CFrame.Angles(-0.3 +math.rad(math.random(-1,1)), math.rad(math.random(-1,1)), math.rad(math.random(-1,1))), 0.5)
  396. llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(0.5, 2.1, 0) *CFrame.Angles(0, 25, 0), 0.5)
  397. rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(-0.5, 2.1, 0) *CFrame.Angles(0,0,0), 0.5)
  398. end
  399. if owner.Character.HumanoidRootPart.Velocity.Magnitude > 1 then
  400. walk = walk +0.1
  401. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, 0.3) *CFrame.Angles(0.3 +math.rad(math.random(-1,1)), math.rad(math.random(-1,1)), math.rad(math.random(-1,1))), 0.5)
  402. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(0, -1.45, -0.8) *CFrame.Angles(0.8+math.rad(math.random(-1,1)), math.rad(math.random(-1,1)), math.rad(math.random(-1,1))), 0.5)
  403. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(1.5, 0.2, math.cos(-walk) *-0.7) *CFrame.Angles(math.cos(walk) *0.7 +math.rad(math.random(-1,1)), 25 +math.rad(math.random(-1,1)), math.rad(math.random(-1,1))), 0.5)
  404. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(-1.5, 0.2, math.cos(-walk) *0.7) *CFrame.Angles(math.cos(walk) *-0.7 +math.rad(math.random(-1,1)), math.rad(math.random(-1,1)), math.rad(math.random(-1,1))), 0.5)
  405. llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(0.5, 2.1, math.cos(walk) *0.4) *CFrame.Angles(math.cos(-walk) *0.7, 25, 0), 0.5)
  406. rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(-0.5, 2.1, math.cos(-walk) *0.4) *CFrame.Angles(math.cos(-walk) *-0.7, 0, 0), 0.5)
  407. end
  408. end
  409. if mode == 4 then
  410. if owner.Character.HumanoidRootPart.Velocity.Magnitude < 1 then
  411. idle = idle +0.1
  412. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, -2 + math.sin(idle) *0.2, 0), 0.1)
  413. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(0, -1.5, 0) *CFrame.Angles(0+math.rad(math.random(-3,3)), math.rad(math.random(-3,3)), math.rad(math.random(-3,3))), 0.5)
  414. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.5, math.cos(idle) *0.3, 0) *CFrame.Angles(0, 25, 0.2), 0.1)
  415. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5, math.cos(idle) *0.3, 0) *CFrame.Angles(0, 0, -0.2), 0.1)
  416. llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.45, 1.7, 0.6) *CFrame.Angles(0, 25, 0), 0.1)
  417. rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.4, 2.1, 0) *CFrame.Angles(0, 0, 0), 0.1)
  418. end
  419. if owner.Character.HumanoidRootPart.Velocity.Magnitude > 1 then
  420. walk = walk +0.1
  421. hrw.C0 = hrw.C0:lerp(owner.Character.HumanoidRootPart.CFrame:inverse() *owner.Character.HumanoidRootPart.CFrame *CFrame.new(0, -2 + math.sin(walk) *0.2, math.cos(walk) *0.2) *CFrame.Angles(0.3, 0, 0), 0.1)
  422. hw.C0 = hw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame * CFrame.new(0, -1.5, 0) *CFrame.Angles(0+math.rad(math.random(-3,3)), math.rad(math.random(-3,3)), math.rad(math.random(-3,3))), 0.5)
  423. law.C0 = law.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(1.5 , math.cos(idle) *0.3, 0) *CFrame.Angles(0.5, 25, 0), 0.1)
  424. raw.C0 = raw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-1.5 , math.cos(idle) *0.3, 0) *CFrame.Angles(0.5, 0, 0), 0.1)
  425. llw.C0 = llw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(0.45, 2.1, 0) *CFrame.Angles(0.5, 25, 0), 0.1)
  426. rlw.C0 = rlw.C0:lerp(owner.Character.Torso.CFrame:inverse() *owner.Character.Torso.CFrame *CFrame.new(-0.4, 2.1, 0) *CFrame.Angles(0.5, 0, 0), 0.1)
  427. end
  428. end
  429. end
  430. end
  431. end)anim()
  432. spawn(function()
  433. local TweenService = game:GetService("TweenService")
  434. local Colours = {Color3.fromRGB(255,0,0),Color3.fromRGB(255,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,0,255),Color3.fromRGB(170,0,170)}
  435. local Int = 0
  436. while wait(0.2) do
  437. if mode == 4 then
  438. if Int == #Colours then Int = 0 end
  439. Int = Int+1
  440. TweenService:Create(Frame,TweenInfo.new(0.4),{BackgroundColor3 = Colours[Int]}):Play()
  441. end
  442. end
  443. end)
  444. owner.Chatted:connect(function(m)
  445. if m == "~stopscr" then
  446. sound.PlayOnRemove = false
  447. sound:Stop()
  448. script:Destroy()
  449. end
  450. end)
  451. NLS([[
  452. while game:GetService("RunService").RenderStepped:wait() do
  453. if owner.Character.Head.Type.Framer.Labeler.Text == "INSANITY" then
  454. workspace.CurrentCamera.CFrame=workspace.CurrentCamera.CFrame*CFrame.Angles(math.random(-3,3)/360,math.random(-3,3)/360,math.random(-3,3)/360)
  455. end
  456. end
  457. ]], owner.Character)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement