Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.79 KB | None | 0 0
  1. -------------------------------------------
  2. --CHECK AND TURN THE SIGNALS TO THE RIGHT--
  3. -------------------------------------------
  4. --~Sugarie--
  5. ------------
  6.  
  7. wait(1/60)
  8. Effects = { }
  9. local Player = game:GetService("Players").Hjhjhkhiu3
  10. local chara = Player.Character
  11. local Humanoid = chara:FindFirstChildOfClass("Humanoid")
  12. local LeftArm = chara["Left Arm"]
  13. local RightArm = chara["Right Arm"]
  14. local LeftLeg = chara["Left Leg"]
  15. local RightLeg = chara["Right Leg"]
  16. local Head = chara.Head
  17. local Torso = chara.Torso
  18. local Camera = game.Workspace.CurrentCamera
  19. local RootPart = chara.HumanoidRootPart
  20. local RootJoint = RootPart.RootJoint
  21. local attack = false
  22. local Anim = 'Idle'
  23. local attacktype = 1
  24. local delays = false
  25. local play = true
  26. local targetted = nil
  27. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  28. local velocity = RootPart.Velocity.y
  29. local sine = 0
  30. local change = 1
  31. local doe = 0
  32. local Create = LoadLibrary("RbxUtility").Create
  33.  
  34. Humanoid.Animator.Parent = nil
  35. chara.Animate.Parent = nil
  36.  
  37. local newMotor = function(part0, part1, c0, c1)
  38. local w = Create('Motor'){
  39. Parent = part0,
  40. Part0 = part0,
  41. Part1 = part1,
  42. C0 = c0,
  43. C1 = c1,
  44. }
  45. return w
  46. end
  47.  
  48. function clerp(a, b, t)
  49. return a:lerp(b, t)
  50. end
  51.  
  52. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  53. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  54.  
  55. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  56. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  57. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  58. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  59. RootJoint.C1 = CFrame.new(0, 0, 0)
  60. RootJoint.C0 = CFrame.new(0, 0, 0)
  61. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  62. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  63.  
  64. local rarmc1 = RW.C1
  65. local larmc1 = LW.C1
  66. local rlegc1 = RH.C1
  67. local llegc1 = LH.C1
  68.  
  69. local resetc1 = false
  70.  
  71. function PlayAnimationFromTable(table, speed, bool)
  72. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  73. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  74. RW.C0 = clerp(RW.C0, table[3], speed)
  75. LW.C0 = clerp(LW.C0, table[4], speed)
  76. RH.C0 = clerp(RH.C0, table[5], speed)
  77. LH.C0 = clerp(LH.C0, table[6], speed)
  78. if bool == true then
  79. if resetc1 == false then
  80. resetc1 = true
  81. RootJoint.C1 = RootJoint.C1
  82. Torso.Neck.C1 = Torso.Neck.C1
  83. RW.C1 = rarmc1
  84. LW.C1 = larmc1
  85. RH.C1 = rlegc1
  86. LH.C1 = llegc1
  87. end
  88. end
  89. end
  90.  
  91. ArtificialHB = Instance.new("BindableEvent", script)
  92. ArtificialHB.Name = "Heartbeat"
  93. script:WaitForChild("Heartbeat")
  94. frame = 0.03333333333333
  95. tf = 0
  96. allowframeloss = false
  97. tossremainder = false
  98. lastframe = tick()
  99. script.Heartbeat:Fire()
  100. game:GetService("RunService").Heartbeat:connect(function(s, p)
  101. tf = tf + s
  102. if tf >= frame then
  103. if allowframeloss then
  104. script.Heartbeat:Fire()
  105. lastframe = tick()
  106. else
  107. for i = 1, math.floor(tf / frame) do
  108. script.Heartbeat:Fire()
  109. end
  110. lastframe = tick()
  111. end
  112. if tossremainder then
  113. tf = 0
  114. else
  115. tf = tf - frame * math.floor(tf / frame)
  116. end
  117. end
  118. end)
  119. function swait(num)
  120. if num == 0 or num == nil then
  121. ArtificialHB.Event:wait()
  122. else
  123. for i = 0, num do
  124. ArtificialHB.Event:wait()
  125. end
  126. end
  127. end
  128.  
  129. function RemoveOutlines(part)
  130. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  131. end
  132.  
  133. sndid = "rbxassetid://2702380370"
  134. sndpi = 1
  135. sndvo = 10
  136. saun = Instance.new("Sound",Head)
  137. saun.Volume = sndvo
  138. saun.Pitch = sndpi
  139. saun.SoundId = sndid
  140. saun.Name = "a"
  141. saun.Looped = true
  142. saun:Play()
  143.  
  144. dant = 0
  145.  
  146. New = function(Object, Parent, Name, Data)
  147. local Object = Instance.new(Object)
  148. for Index, Value in pairs(Data or {}) do
  149. Object[Index] = Value
  150. end
  151. Object.Parent = Parent
  152. Object.Name = Name
  153. return Object
  154. end
  155.  
  156. opos = Torso.Position
  157. local cad = script.Cadillac:Clone()
  158. script.Cadillac.Parent = nil
  159. cad:MoveTo(Torso.Position)
  160. cad.Parent = chara
  161. for i,v in pairs(cad:children()) do
  162. v.LocalTransparencyModifier = 0
  163. end
  164. local PaintPart = cad:FindFirstChild("PaintPart")
  165. Weld = New("ManualWeld",PaintPart,"Weld",{Part0 = PaintPart,Part1 = Torso,C1 = CFrame.new(1.71775818, -0.83713603, 1.37174606, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
  166. chara:MoveTo(opos+Vector3.new(0,4,0))
  167.  
  168. cad:FindFirstChild("KillPart").Touched:connect(function(hit)
  169. local dude = hit.Parent
  170. local hah = dude:FindFirstChildOfClass("Humanoid")
  171. if hah and hah.Health > 0 and dude:FindFirstChild("GOTHIT")==nil and Torso.Velocity ~= Vector3.new(0,0,0) then
  172. Instance.new("BoolValue",dude).Name = "GOTHIT"
  173. if hah.RigType == Enum.HumanoidRigType.R6 then
  174. local raggy = script.RagdollScript:Clone()
  175. raggy.Parent = dude
  176. raggy.Disabled = false
  177. elseif hah.RigType == Enum.HumanoidRigType.R15 then
  178. local raggy = script.R15RagdollScript:Clone()
  179. raggy.Parent = dude
  180. raggy.Disabled = false
  181. end
  182. local torsy = dude:FindFirstChild("UpperTorso") or dude:FindFirstChild("Torso")
  183. if torsy then
  184. torsy.Velocity = RootPart.CFrame.lookVector*100
  185. local so = Instance.new("Sound",torsy)
  186. so.SoundId = "rbxassetid://318985812"
  187. so.Volume = 1
  188. so.PlayOnRemove = true
  189. so:Destroy()
  190. end
  191. dude:BreakJoints()
  192. end
  193. end)
  194.  
  195. local keydownevent = script:WaitForChild("KeyDownEvent")
  196.  
  197. keydownevent.OnServerEvent:connect(function(ply,key)
  198. if ply == Player then
  199. key=key:lower()
  200. if key=="e" then
  201. if dant == 0 then
  202. dant = 1
  203. sndid = "rbxassetid://224179257"
  204. sndvo = 1
  205. elseif dant == 1 then
  206. dant = 2
  207. sndid = "rbxassetid://631717191"
  208. sndvo = 1
  209. elseif dant == 2 then
  210. dant = 3
  211. sndid = "rbxassetid://2642540349"
  212. sndvo = 1
  213. elseif dant == 3 then
  214. dant = 4
  215. sndid = "rbxassetid://2627846864"
  216. sndvo = 1
  217. elseif dant == 4 then
  218. dant = 0
  219. sndid = "rbxassetid://1565286397"
  220. sndvo = 1
  221. end
  222. saun.Pitch = sndpi
  223. saun.SoundId = sndid
  224. saun.Volume = sndvo
  225. saun:Play()
  226. end
  227. end
  228. end)
  229.  
  230. while true do
  231. if Head:FindFirstChild("a")==nil then
  232. saun = Instance.new("Sound",Head)
  233. saun.Volume = sndvo
  234. saun.Pitch = sndpi
  235. saun.SoundId = sndid
  236. saun.Name = "a"
  237. saun.Looped = true
  238. saun:Play()
  239. end
  240. Humanoid.WalkSpeed = 140
  241. for i = 0, 1, 0.2 do
  242. swait()
  243. PlayAnimationFromTable({
  244. CFrame.new(3.81469727e-06, 0.919076443, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  245. CFrame.new(0, 1.49999738, -1.49011612e-07, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  246. CFrame.new(1.20946515, 0.193248183, -0.58490479, 0.939692736, 0.342019916, -4.25223249e-07, -0.171009958, 0.469845295, -0.866025984, -0.296197951, 0.813798487, 0.499998957),
  247. CFrame.new(-1.26339209, 0.195092499, -0.581699014, 0.866025269, -0.500000358, 1.65622282e-07, 0.250000089, 0.433012068, -0.866025686, 0.433013141, 0.750000119, 0.499999493),
  248. CFrame.new(0.5, -1.30000186, -1.09999657, 1, 0, 0, 0, 0.173647001, -0.984807968, 0, 0.984807968, 0.173647001),
  249. CFrame.new(-0.5, -1.30000186, -1.09999657, 1, 0, 0, 0, 0.173647001, -0.984807968, 0, 0.984807968, 0.173647001),
  250. }, .5, false)
  251. end
  252. for i = 0, 1, 0.2 do
  253. swait()
  254. PlayAnimationFromTable({
  255. CFrame.new(3.81469727e-06, 0.919076443, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  256. CFrame.new(0, 1.48659623, -0.223202646, 1, 0, 0, 0, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388),
  257. CFrame.new(1.20946515, 0.193248183, -0.58490479, 0.939692736, 0.342019916, -4.25223249e-07, -0.171009958, 0.469845295, -0.866025984, -0.296197951, 0.813798487, 0.499998957),
  258. CFrame.new(-1.26339209, 0.195092499, -0.581699014, 0.866025269, -0.500000358, 1.65622282e-07, 0.250000089, 0.433012068, -0.866025686, 0.433013141, 0.750000119, 0.499999493),
  259. CFrame.new(0.5, -1.30000186, -1.09999657, 1, 0, 0, 0, 0.173647001, -0.984807968, 0, 0.984807968, 0.173647001),
  260. CFrame.new(-0.5, -1.30000186, -1.09999657, 1, 0, 0, 0, 0.173647001, -0.984807968, 0, 0.984807968, 0.173647001),
  261. }, .5, false)
  262. end
  263. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement