DarkScriptZEditors

DDDD

Dec 14th, 2018
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.21 KB | None | 0 0
  1. -- [ SANIIIC HES ON DA RAWN ] --
  2.  
  3. --TODO: add comments or something idk
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player = owner
  6. local Mouse,mouse,UserInputService,ContextActionService
  7. do
  8. script.Parent = Player.Character
  9. local CAS = {Actions={}}
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12. Event.Parent = Player.Character
  13. local fakeEvent = function()
  14. local t = {_fakeEvent=true}
  15. t.Connect = function(self,f)self.Function=f end
  16. t.connect = t.Connect
  17. return t
  18. end
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. function CAS:BindAction(name,fun,touch,...)
  22. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  23. end
  24. function CAS:UnbindAction(name)
  25. CAS.Actions[name] = nil
  26. end
  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. Event.OnServerEvent:Connect(function(plr,io)
  36. if plr~=Player then return end
  37. if io.isMouse then
  38. m.Target = io.Target
  39. m.Hit = io.Hit
  40. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  41. if io.UserInputState == Enum.UserInputState.Begin then
  42. m:TrigEvent("Button1Down")
  43. else
  44. m:TrigEvent("Button1Up")
  45. end
  46. else
  47. for n,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. if io.UserInputState == Enum.UserInputState.Begin then
  55. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  56. UIS:TrigEvent("InputBegan",io,false)
  57. else
  58. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  59. UIS:TrigEvent("InputEnded",io,false)
  60. end
  61. end
  62. end)
  63. NLS([==[
  64. local Player = game:GetService("Players").LocalPlayer
  65.  
  66. local Char = Player.Character
  67. local Event = Char:WaitForChild("UserInput_Event")
  68.  
  69. local UIS = game:GetService("UserInputService")
  70.  
  71. local input = function(io,a)
  72. if a then return end
  73. local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
  74. Event:FireServer(io)
  75. end
  76. UIS.InputBegan:Connect(input)
  77. UIS.InputEnded:Connect(input)
  78. local Changed = false
  79. local Mouse = Player:GetMouse()
  80. local h,t = Mouse.Hit,Mouse.Target
  81. while wait(1/30) do
  82. if h~=Mouse.Hit or t~=Mouse.Target then
  83. Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
  84. h,t=Mouse.Hit,Mouse.Target
  85. end
  86. end
  87. ]==],Player.Character)
  88. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  89. end
  90.  
  91. wait()
  92. thing = 0
  93. LoudVolume = false
  94. Submerged = false
  95. Music = true
  96. script.Name = "SANIIIIC"
  97. c = owner.Character
  98. Head = c.Head
  99. Humanoid = c.Humanoid
  100. anim = c.Humanoid.Animator
  101. rage = false
  102. p = owner
  103. Music = false
  104. anim = Humanoid.Animator
  105. local Effects = {}
  106. attack = false
  107. local attacking = false
  108. vt = Vector3.new
  109. bc = BrickColor.new
  110. br = BrickColor.random
  111. it = Instance.new
  112. cf = CFrame.new
  113. euler = CFrame.fromEulerAnglesXYZ
  114. angles = CFrame.Angles
  115. matr = math.random
  116.  
  117. RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  118. RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  119. LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  120. LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  121. RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  122. RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  123. LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  124. LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  125. NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  126. NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  127. RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  128. RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  129. RS = c.Torso:FindFirstChild("Right Shoulder")
  130. LS = c.Torso:FindFirstChild("Left Shoulder")
  131. RH = c.Torso:FindFirstChild("Right Hip")
  132. LH = c.Torso:FindFirstChild("Left Hip")
  133. RJ = c.HumanoidRootPart:FindFirstChild("RootJoint")
  134. N = c.Torso:FindFirstChild("Neck")
  135. cf = CFrame.new
  136. ang = CFrame.Angles
  137. rd = math.rad
  138. rd2 = math.random
  139.  
  140. --[[mainShirt = c.Shirt
  141. mainPants = c.Pants
  142. mainBColors = c["Body Colors"]
  143. mainShirt.ShirtTemplate = "rbxassetid://769869277"
  144. mainPants.PantsTemplate = "rbxassetid://805486769"
  145. mainBColors.HeadColor = BrickColor.new("Pastel brown")
  146. mainBColors.LeftArmColor = BrickColor.new("Pastel brown")
  147. mainBColors.LeftLegColor = BrickColor.new("Pastel brown")
  148. mainBColors.RightArmColor = BrickColor.new("Pastel brown")
  149. mainBColors.RightLegColor = BrickColor.new("Pastel brown")
  150. mainBColors.TorsoColor = BrickColor.new("Pastel brown")]]
  151. function swait(num)
  152. if num==0 or num==nil then
  153. game:service'RunService'.Heartbeat:wait(0)
  154. else
  155. for i=0,num do
  156. game:service'RunService'.Heartbeat:wait(0)
  157. end
  158. end
  159. end
  160.  
  161. function lerpz(joint, prop, cfrmz, alp)
  162. joint[prop] = joint[prop]:lerp(cfrmz, alp)
  163. end
  164. function resetlerp()
  165. RJ.C0 = RJC0
  166. RJ.C1 = RJC1
  167. N.C0 = NC0
  168. N.C1 = NC1
  169. RS.C0 = RSC0
  170. RS.C1 = RSC1
  171. LS.C0 = LSC0
  172. LS.C1 = LSC1
  173. RH.C0 = RHC0
  174. RH.C1 = RHC1
  175. LH.C0 = LHC0
  176. LH.C1 = LHC1
  177. end
  178.  
  179. local S2 = Instance.new("Sound",c.HumanoidRootPart)S2.SoundId = "rbxassetid://167523769" S2.Volume = 0 S2.PlaybackSpeed = 0 S2.Looped = true S2:Play()
  180. c.Head.face:remove()
  181.  
  182. local ColorArray = {ColorSequenceKeypoint.new(0, Color3.new(0/255,170/255,255/255)),ColorSequenceKeypoint.new(1, Color3.new(0/255,170/255,255/255))}
  183. local att1 = Instance.new("Attachment", c["Right Leg"])
  184. att1.Name = "att1"
  185. att1.Position = Vector3.new(0.5, 1, 0.5)
  186. local att2 = Instance.new("Attachment", c["Right Leg"])
  187. att2.Name = "att2"
  188. att2.Position = Vector3.new(-0.5, 1, 0.5)
  189. local att3 = Instance.new("Attachment", c["Right Leg"])
  190. att3.Name = "att3"
  191. att3.Position = Vector3.new(0.5, -1, 0.5)
  192. local att4 = Instance.new("Attachment", c["Right Leg"])
  193. att4.Name = "att4"
  194. att4.Position = Vector3.new(-0.5, -1, 0.5)
  195.  
  196. local attt1 = Instance.new("Attachment", c["Left Leg"])
  197. attt1.Name = "att1"
  198. attt1.Position = Vector3.new(0.5, 1, 0.5)
  199. local attt2 = Instance.new("Attachment", c["Left Leg"])
  200. attt2.Name = "att2"
  201. attt2.Position = Vector3.new(-0.5, 1, 0.5)
  202. local attt3 = Instance.new("Attachment", c["Left Leg"])
  203. attt3.Name = "att3"
  204. attt3.Position = Vector3.new(0.5, -1, 0.5)
  205. local attt4 = Instance.new("Attachment", c["Left Leg"])
  206. attt4.Name = "att4"
  207. attt4.Position = Vector3.new(-0.5, -1, 0.5)
  208.  
  209. local trailtop1 = Instance.new("Trail", c["Right Leg"])
  210. trailtop1.Enabled = true
  211. trailtop1.Texture = "rbxassetid://16607923"
  212. trailtop1.Name = "toptrail"
  213. trailtop1.MinLength = 0
  214. trailtop1.Lifetime = 0.1
  215.  
  216. trailtop1.Color = ColorSequence.new(ColorArray)
  217.  
  218. trailtop1.Attachment0 = att1
  219. trailtop1.Attachment1 = att2
  220. trailtop1.Transparency = NumberSequence.new({
  221. NumberSequenceKeypoint.new(0, 0.5, 0),
  222. NumberSequenceKeypoint.new(1, 1, 0)
  223. })
  224.  
  225. local trailbot1 = Instance.new("Trail", c["Right Leg"])
  226. trailbot1.Enabled = true
  227. trailbot1.Texture = "rbxassetid://16607923"
  228. trailbot1.Name = "bottrail"
  229. trailbot1.MinLength = 0
  230. trailbot1.Lifetime = 0.1
  231.  
  232. trailbot1.Color = ColorSequence.new(ColorArray)
  233.  
  234. trailbot1.Attachment0 = att3
  235. trailbot1.Attachment1 = att4
  236. trailbot1.Transparency = NumberSequence.new({
  237. NumberSequenceKeypoint.new(0, 0.5, 0),
  238. NumberSequenceKeypoint.new(1, 1, 0)
  239. })
  240.  
  241. local trailside1 = Instance.new("Trail", c["Right Leg"])
  242. trailside1.Enabled = true
  243. trailside1.Texture = "rbxassetid://16607923"
  244. trailside1.Name = "sidetrail1"
  245. trailside1.MinLength = 0
  246. trailside1.Lifetime = 0.1
  247.  
  248. trailside1.Color = ColorSequence.new(ColorArray)
  249.  
  250. trailside1.Attachment0 = att1
  251. trailside1.Attachment1 = att3
  252. trailside1.Transparency = NumberSequence.new({
  253. NumberSequenceKeypoint.new(0, 0.5, 0),
  254. NumberSequenceKeypoint.new(1, 1, 0)
  255. })
  256.  
  257. local trailside2 = Instance.new("Trail", c["Right Leg"])
  258. trailside2.Enabled = true
  259. trailside2.Texture = "rbxassetid://16607923"
  260. trailside2.Name = "sidetrail2"
  261. trailside2.MinLength = 0
  262. trailside2.Lifetime = 0.1
  263. spawn(function()
  264. while true do wait()
  265. trailside2.Color = ColorSequence.new(ColorArray)
  266. end
  267. end)
  268. trailside2.Attachment0 = att2
  269. trailside2.Attachment1 = att4
  270. trailside2.Transparency = NumberSequence.new({
  271. NumberSequenceKeypoint.new(0, 0.5, 0),
  272. NumberSequenceKeypoint.new(1, 1, 0)
  273. })
  274.  
  275.  
  276. local trailtop12 = Instance.new("Trail", c["Left Leg"])
  277. trailtop12.Enabled = true
  278. trailtop12.Texture = "rbxassetid://16607923"
  279. trailtop12.Name = "toptrail"
  280. trailtop12.MinLength = 0
  281. trailtop12.Lifetime = 0.1
  282. spawn(function()
  283. while true do wait()
  284. trailtop12.Color = ColorSequence.new(ColorArray)
  285. end
  286. end)
  287. trailtop12.Attachment0 = attt1
  288. trailtop12.Attachment1 = attt2
  289. trailtop12.Transparency = NumberSequence.new({
  290. NumberSequenceKeypoint.new(0, 0.5, 0),
  291. NumberSequenceKeypoint.new(1, 1, 0)
  292. })
  293.  
  294. local trailbot2 = Instance.new("Trail", c["Left Leg"])
  295. trailbot2.Enabled = true
  296. trailbot2.Texture = "rbxassetid://16607923"
  297. trailbot2.Name = "bottrail"
  298. trailbot2.MinLength = 0
  299. trailbot2.Lifetime = 0.1
  300.  
  301. trailbot2.Color = ColorSequence.new(ColorArray)
  302.  
  303. trailbot2.Attachment0 = attt3
  304. trailbot2.Attachment1 = attt4
  305. trailbot2.Transparency = NumberSequence.new({
  306. NumberSequenceKeypoint.new(0, 0.5, 0),
  307. NumberSequenceKeypoint.new(1, 1, 0)
  308. })
  309.  
  310. local trailside12 = Instance.new("Trail", c["Left Leg"])
  311. trailside12.Enabled = true
  312. trailside12.Texture = "rbxassetid://16607923"
  313. trailside12.Name = "sidetrail1"
  314. trailside12.MinLength = 0
  315. trailside12.Lifetime = 0.1
  316.  
  317. trailside12.Color = ColorSequence.new(ColorArray)
  318.  
  319. trailside12.Attachment0 = attt1
  320. trailside12.Attachment1 = attt3
  321. trailside12.Transparency = NumberSequence.new({
  322. NumberSequenceKeypoint.new(0, 0.5, 0),
  323. NumberSequenceKeypoint.new(1, 1, 0)
  324. })
  325.  
  326. local trailside22 = Instance.new("Trail", c["Left Leg"])
  327. trailside22.Enabled = true
  328. trailside22.Texture = "rbxassetid://16607923"
  329. trailside22.Name = "sidetrail2"
  330. trailside22.MinLength = 0
  331. trailside22.Lifetime = 0.1
  332.  
  333. trailside22.Color = ColorSequence.new(ColorArray)
  334.  
  335. trailside22.Attachment0 = attt2
  336. trailside22.Attachment1 = attt4
  337. trailside22.Transparency = NumberSequence.new({
  338. NumberSequenceKeypoint.new(0, 0.5, 0),
  339. NumberSequenceKeypoint.new(1, 1, 0)
  340. })
  341.  
  342.  
  343. local att1 = Instance.new("Attachment", c["Right Arm"])
  344. att1.Name = "att1"
  345. att1.Position = Vector3.new(0.5, 1, 0.5)
  346. local att2 = Instance.new("Attachment", c["Right Arm"])
  347. att2.Name = "att2"
  348. att2.Position = Vector3.new(-0.5, 1, 0.5)
  349. local att3 = Instance.new("Attachment", c["Right Arm"])
  350. att3.Name = "att3"
  351. att3.Position = Vector3.new(0.5, -1, 0.5)
  352. local att4 = Instance.new("Attachment", c["Right Arm"])
  353. att4.Name = "att4"
  354. att4.Position = Vector3.new(-0.5, -1, 0.5)
  355.  
  356. local attt1 = Instance.new("Attachment", c["Left Arm"])
  357. attt1.Name = "att1"
  358. attt1.Position = Vector3.new(0.5, 1, 0.5)
  359. local attt2 = Instance.new("Attachment", c["Left Arm"])
  360. attt2.Name = "att2"
  361. attt2.Position = Vector3.new(-0.5, 1, 0.5)
  362. local attt3 = Instance.new("Attachment", c["Left Arm"])
  363. attt3.Name = "att3"
  364. attt3.Position = Vector3.new(0.5, -1, 0.5)
  365. local attt4 = Instance.new("Attachment", c["Left Arm"])
  366. attt4.Name = "att4"
  367. attt4.Position = Vector3.new(-0.5, -1, 0.5)
  368.  
  369. local trailtop1 = Instance.new("Trail", c["Right Arm"])
  370. trailtop1.Enabled = true
  371. trailtop1.Texture = "rbxassetid://16607923"
  372. trailtop1.Name = "toptrail"
  373. trailtop1.MinLength = 0
  374. trailtop1.Lifetime = 0.1
  375.  
  376. trailtop1.Color = ColorSequence.new(ColorArray)
  377.  
  378. trailtop1.Attachment0 = att1
  379. trailtop1.Attachment1 = att2
  380. trailtop1.Transparency = NumberSequence.new({
  381. NumberSequenceKeypoint.new(0, 0.5, 0),
  382. NumberSequenceKeypoint.new(1, 1, 0)
  383. })
  384.  
  385. local trailbot1 = Instance.new("Trail", c["Right Arm"])
  386. trailbot1.Enabled = true
  387. trailbot1.Texture = "rbxassetid://16607923"
  388. trailbot1.Name = "bottrail"
  389. trailbot1.MinLength = 0
  390. trailbot1.Lifetime = 0.1
  391. spawn(function()
  392. while true do wait()
  393. trailbot1.Color = ColorSequence.new(ColorArray)
  394. end
  395. end)
  396. trailbot1.Attachment0 = att3
  397. trailbot1.Attachment1 = att4
  398. trailbot1.Transparency = NumberSequence.new({
  399. NumberSequenceKeypoint.new(0, 0.5, 0),
  400. NumberSequenceKeypoint.new(1, 1, 0)
  401. })
  402.  
  403. local trailside1 = Instance.new("Trail", c["Right Arm"])
  404. trailside1.Enabled = true
  405. trailside1.Texture = "rbxassetid://16607923"
  406. trailside1.Name = "sidetrail1"
  407. trailside1.MinLength = 0
  408. trailside1.Lifetime = 0.1
  409.  
  410. trailside1.Color = ColorSequence.new(ColorArray)
  411.  
  412. trailside1.Attachment0 = att1
  413. trailside1.Attachment1 = att3
  414. trailside1.Transparency = NumberSequence.new({
  415. NumberSequenceKeypoint.new(0, 0.5, 0),
  416. NumberSequenceKeypoint.new(1, 1, 0)
  417. })
  418.  
  419. local trailside2 = Instance.new("Trail", c["Right Arm"])
  420. trailside2.Enabled = true
  421. trailside2.Texture = "rbxassetid://16607923"
  422. trailside2.Name = "sidetrail2"
  423. trailside2.MinLength = 0
  424. trailside2.Lifetime = 0.1
  425.  
  426. trailside2.Color = ColorSequence.new(ColorArray)
  427.  
  428. trailside2.Attachment0 = att2
  429. trailside2.Attachment1 = att4
  430. trailside2.Transparency = NumberSequence.new({
  431. NumberSequenceKeypoint.new(0, 0.5, 0),
  432. NumberSequenceKeypoint.new(1, 1, 0)
  433. })
  434.  
  435.  
  436. local trailtop12 = Instance.new("Trail", c["Left Arm"])
  437. trailtop12.Enabled = true
  438. trailtop12.Texture = "rbxassetid://16607923"
  439. trailtop12.Name = "toptrail"
  440. trailtop12.MinLength = 0
  441. trailtop12.Lifetime = 0.1
  442.  
  443. trailtop12.Color = ColorSequence.new(ColorArray)
  444.  
  445. trailtop12.Attachment0 = attt1
  446. trailtop12.Attachment1 = attt2
  447. trailtop12.Transparency = NumberSequence.new({
  448. NumberSequenceKeypoint.new(0, 0.5, 0),
  449. NumberSequenceKeypoint.new(1, 1, 0)
  450. })
  451.  
  452. local trailbot2 = Instance.new("Trail", c["Left Arm"])
  453. trailbot2.Enabled = true
  454. trailbot2.Texture = "rbxassetid://16607923"
  455. trailbot2.Name = "bottrail"
  456. trailbot2.MinLength = 0
  457. trailbot2.Lifetime = 0.1
  458.  
  459. trailbot2.Color = ColorSequence.new(ColorArray)
  460.  
  461. trailbot2.Attachment0 = attt3
  462. trailbot2.Attachment1 = attt4
  463. trailbot2.Transparency = NumberSequence.new({
  464. NumberSequenceKeypoint.new(0, 0.5, 0),
  465. NumberSequenceKeypoint.new(1, 1, 0)
  466. })
  467.  
  468. local trailside12 = Instance.new("Trail", c["Left Arm"])
  469. trailside12.Enabled = true
  470. trailside12.Texture = "rbxassetid://16607923"
  471. trailside12.Name = "sidetrail1"
  472. trailside12.MinLength = 0
  473. trailside12.Lifetime = 0.1
  474.  
  475. trailside12.Color = ColorSequence.new(ColorArray)
  476.  
  477. trailside12.Attachment0 = attt1
  478. trailside12.Attachment1 = attt3
  479. trailside12.Transparency = NumberSequence.new({
  480. NumberSequenceKeypoint.new(0, 0.5, 0),
  481. NumberSequenceKeypoint.new(1, 1, 0)
  482. })
  483.  
  484. local trailside22 = Instance.new("Trail", c["Left Arm"])
  485. trailside22.Enabled = true
  486. trailside22.Texture = "rbxassetid://16607923"
  487. trailside22.Name = "sidetrail2"
  488. trailside22.MinLength = 0
  489. trailside22.Lifetime = 0.1
  490.  
  491. trailside22.Color = ColorSequence.new(ColorArray)
  492.  
  493. trailside22.Attachment0 = attt2
  494. trailside22.Attachment1 = attt4
  495. trailside22.Transparency = NumberSequence.new({
  496. NumberSequenceKeypoint.new(0, 0.5, 0),
  497. NumberSequenceKeypoint.new(1, 1, 0)
  498. })
  499.  
  500. local att1 = Instance.new("Attachment", c["Torso"])
  501. att1.Name = "att1"
  502. att1.Position = Vector3.new(1, 1, 0.5)
  503. local att2 = Instance.new("Attachment", c["Torso"])
  504. att2.Name = "att2"
  505. att2.Position = Vector3.new(-1, 1, 0.5)
  506. local att3 = Instance.new("Attachment", c["Torso"])
  507. att3.Name = "att3"
  508. att3.Position = Vector3.new(1, -1, 0.5)
  509. local att4 = Instance.new("Attachment", c["Torso"])
  510. att4.Name = "att4"
  511. att4.Position = Vector3.new(-1, -1, 0.5)
  512.  
  513. local attt1 = Instance.new("Attachment", c["Head"])
  514. attt1.Name = "att1"
  515. attt1.Position = Vector3.new(.55, .55, 0.025)
  516. local attt2 = Instance.new("Attachment", c["Head"])
  517. attt2.Name = "att2"
  518. attt2.Position = Vector3.new(-.55, .55, 0.025)
  519. local attt3 = Instance.new("Attachment", c["Head"])
  520. attt3.Name = "att3"
  521. attt3.Position = Vector3.new(.55, -.5, 0.025)
  522. local attt4 = Instance.new("Attachment", c["Head"])
  523. attt4.Name = "att4"
  524. attt4.Position = Vector3.new(-.55, -.5, 0.025)
  525. local trailtop1 = Instance.new("Trail", c["Torso"])
  526. trailtop1.Enabled = true
  527. trailtop1.Texture = "rbxassetid://16607923"
  528. trailtop1.Name = "toptrail"
  529. trailtop1.MinLength = 0
  530. trailtop1.Lifetime = 0.1
  531.  
  532. trailtop1.Color = ColorSequence.new(ColorArray)
  533.  
  534. trailtop1.Attachment0 = att1
  535. trailtop1.Attachment1 = att2
  536. trailtop1.Transparency = NumberSequence.new({
  537. NumberSequenceKeypoint.new(0, 0.5, 0),
  538. NumberSequenceKeypoint.new(1, 1, 0)
  539. })
  540. local trailbot1 = Instance.new("Trail", c["Torso"])
  541. trailbot1.Enabled = true
  542. trailbot1.Texture = "rbxassetid://16607923"
  543. trailbot1.Name = "bottrail"
  544. trailbot1.MinLength = 0
  545. trailbot1.Lifetime = 0.1
  546.  
  547. trailbot1.Color = ColorSequence.new(ColorArray)
  548.  
  549. trailbot1.Attachment0 = att3
  550. trailbot1.Attachment1 = att4
  551. trailbot1.Transparency = NumberSequence.new({
  552. NumberSequenceKeypoint.new(0, 0.5, 0),
  553. NumberSequenceKeypoint.new(1, 1, 0)
  554. })
  555. local trailside1 = Instance.new("Trail", c["Torso"])
  556. trailside1.Enabled = true
  557. trailside1.Texture = "rbxassetid://16607923"
  558. trailside1.Name = "sidetrail1"
  559. trailside1.MinLength = 0
  560. trailside1.Lifetime = 0.1
  561.  
  562. trailside1.Color = ColorSequence.new(ColorArray)
  563.  
  564. trailside1.Attachment0 = att1
  565. trailside1.Attachment1 = att3
  566. trailside1.Transparency = NumberSequence.new({
  567. NumberSequenceKeypoint.new(0, 0.5, 0),
  568. NumberSequenceKeypoint.new(1, 1, 0)
  569. })
  570. local trailside2 = Instance.new("Trail", c["Torso"])
  571. trailside2.Enabled = true
  572. trailside2.Texture = "rbxassetid://16607923"
  573. trailside2.Name = "sidetrail2"
  574. trailside2.MinLength = 0
  575. trailside2.Lifetime = 0.1
  576.  
  577. trailside2.Color = ColorSequence.new(ColorArray)
  578.  
  579. trailside2.Attachment0 = att2
  580. trailside2.Attachment1 = att4
  581. trailside2.Transparency = NumberSequence.new({
  582. NumberSequenceKeypoint.new(0, 0.5, 0),
  583. NumberSequenceKeypoint.new(1, 1, 0)
  584. })
  585. local trailtop12 = Instance.new("Trail", c["Head"])
  586. trailtop12.Enabled = true
  587. trailtop12.Texture = "rbxassetid://16607923"
  588. trailtop12.Name = "toptrail"
  589. trailtop12.MinLength = 0
  590. trailtop12.Lifetime = 0.1
  591.  
  592. trailtop12.Color = ColorSequence.new(ColorArray)
  593.  
  594. trailtop12.Attachment0 = attt1
  595. trailtop12.Attachment1 = attt2
  596. trailtop12.Transparency = NumberSequence.new({
  597. NumberSequenceKeypoint.new(0, 0.5, 0),
  598. NumberSequenceKeypoint.new(1, 1, 0)
  599. })
  600. local trailbot2 = Instance.new("Trail", c["Head"])
  601. trailbot2.Enabled = true
  602. trailbot2.Texture = "rbxassetid://16607923"
  603. trailbot2.Name = "bottrail"
  604. trailbot2.MinLength = 0
  605. trailbot2.Lifetime = 0.1
  606.  
  607. trailbot2.Color = ColorSequence.new(ColorArray)
  608.  
  609. trailbot2.Attachment0 = attt3
  610. trailbot2.Attachment1 = attt4
  611. trailbot2.Transparency = NumberSequence.new({
  612. NumberSequenceKeypoint.new(0, 0.5, 0),
  613. NumberSequenceKeypoint.new(1, 1, 0)
  614. })
  615. local trailside12 = Instance.new("Trail", c["Head"])
  616. trailside12.Enabled = true
  617. trailside12.Texture = "rbxassetid://16607923"
  618. trailside12.Name = "sidetrail1"
  619. trailside12.MinLength = 0
  620. trailside12.Lifetime = 0.1
  621.  
  622. trailside12.Color = ColorSequence.new(ColorArray)
  623.  
  624. trailside12.Attachment0 = attt1
  625. trailside12.Attachment1 = attt3
  626. trailside12.Transparency = NumberSequence.new({
  627. NumberSequenceKeypoint.new(0, 0.5, 0),
  628. NumberSequenceKeypoint.new(1, 1, 0)
  629. })
  630. local trailside22 = Instance.new("Trail", c["Head"])
  631. trailside22.Enabled = true
  632. trailside22.Texture = "rbxassetid://16607923"
  633. trailside22.Name = "sidetrail2"
  634. trailside22.MinLength = 0
  635. trailside22.Lifetime = 0.1
  636.  
  637. trailside22.Color = ColorSequence.new(ColorArray)
  638.  
  639. trailside22.Attachment0 = attt2 trailside22.Attachment1 = attt4
  640. trailside22.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0),NumberSequenceKeypoint.new(1, 1, 0)})
  641.  
  642. Sped = 0
  643.  
  644. function ragplayer(cactus)
  645. local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://131026421" S.Volume = 2 S:Play()
  646. cactus.Humanoid.PlatformStand = true cactus:findFirstChild("Humanoid").Health = 0.01
  647. if cactus["Right Arm"]~=nil and cactus.Torso:FindFirstChild("Right Shoulder") then
  648. cactus.Torso:FindFirstChild("Right Shoulder"):Destroy()
  649. makegloo(cactus.Torso, RSC0, RSC1, cactus.Torso, cactus["Right Arm"], "Right Shoulder")
  650. maketouchy(cactus["Right Arm"], cactus["Right Arm"], CFrame.new(0, 0.5, 0))
  651. end
  652. if cactus["Left Arm"]~=nil and cactus.Torso:FindFirstChild("Left Shoulder") then
  653. cactus.Torso:FindFirstChild("Left Shoulder"):Destroy()
  654. makegloo(cactus.Torso, LSC0, LSC1, cactus.Torso, cactus["Left Arm"], "Left Shoulder")
  655. maketouchy(cactus["Left Arm"], cactus["Left Arm"], CFrame.new(0, 0.5, 0))
  656. end
  657. if cactus["Right Leg"]~=nil and cactus.Torso:FindFirstChild("Right Hip") then
  658. cactus.Torso:FindFirstChild("Right Hip"):Destroy()
  659. makegloo(cactus.Torso, RHC0, RHC1, cactus.Torso, cactus["Right Leg"], "Right Hip")
  660. maketouchy(cactus["Right Leg"], cactus["Right Leg"], CFrame.new(0, 0.5, 0))
  661. end
  662. if cactus["Left Leg"]~=nil and cactus.Torso:FindFirstChild("Left Hip") then
  663. cactus.Torso:FindFirstChild("Left Hip"):Destroy()
  664. makegloo(cactus.Torso, LHC0, LHC1, cactus.Torso, cactus["Left Leg"], "Left Hip")
  665. maketouchy(cactus["Left Leg"], cactus["Left Leg"], CFrame.new(0, 0.5, 0))
  666. end
  667. cactus.Parent = game.Workspace game.Debris:AddItem(cactus,15)
  668. end
  669. function makegloo(paren, co, ci, parto, parti, nam) local gloo = Instance.new("Glue") gloo.Name = nam gloo.C0 = co gloo.C1 = ci gloo.Part0 = parto gloo.Part1 = parti gloo.Parent = paren end
  670.  
  671. function maketouchy(parent, limb, cframe) local pr = Instance.new("Part") pr.Name = "touchy" pr.Size = Vector3.new(1, 1, 1) pr.Transparency = 1 pr.CustomPhysicalProperties = PhysicalProperties.new(0.55, 0.3, 0.5) pr.CanCollide = true pr.Anchored = false pr.Parent = parent local w = Instance.new("Weld") w.Part0 = pr w.Part1 = limb w.C0 = cframe w.Parent = pr end
  672.  
  673. local hitz = false
  674. c.HumanoidRootPart.Touched:connect(function(Hit)
  675. if thing >= 100 then
  676. if hitz == false then hitz = true
  677. ragplayer(c) local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://386946017" S.Volume = 6 S:Play()
  678. wait(15)
  679. end
  680. end
  681. end)
  682.  
  683. function Spin()
  684. attack = true
  685. while attack == true do Sped = Sped + 0.25
  686. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(Sped*Sped*5), rd(0), rd(0)), 1)
  687. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(60), rd(0), rd(0)), 1)
  688. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(15), rd(25), rd(25)), 1)
  689. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  690. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(15), rd(-25), rd(-25)), 1)
  691. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  692. lerpz(RH, "C0", RHC0 * cf(0.5, 1.5, 0) * ang(rd(0), rd(0), rd(0)), 1)
  693. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  694. lerpz(LH, "C0", LHC0 * cf(-0.5, 1.5, 0) * ang(rd(0), rd(0), rd(0)), 1)
  695. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  696. swait()
  697. end
  698. end
  699.  
  700. SanicScreams = {585370931,202427593}
  701.  
  702. mouse.KeyDown:connect(function(key)
  703. if attack == true then return end
  704. if key == "q" then
  705. Spin()
  706. end
  707. if key == "e" then
  708. local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://537371462" S.Volume = 10 S:Play()
  709. wait(1.25)
  710. local Sanic = SanicScreams[math.random(1,#SanicScreams)]
  711. local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://"..Sanic S.Volume = 10 S:Play()
  712. spawn(function()
  713. local Sp = Instance.new("Part",game.Workspace)Sp.BrickColor = BrickColor.new("Cyan")Sp.Material = "Neon" Sp.Size = Vector3.new(1,1,1) Sp.Anchored = true Sp.CanCollide = false
  714. local SPM = Instance.new("SpecialMesh",Sp)SPM.MeshType = "Sphere" Sp.CFrame = c.HumanoidRootPart.CFrame
  715. for i = 1,25 do
  716. SPM.Scale = SPM.Scale + Vector3.new(4,4,4)
  717. Sp.Transparency = Sp.Transparency + 1/25
  718. swait()
  719. end
  720. end)
  721. local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://214444596" S.Volume = 10 S:Play()
  722. Sped = 10000000000
  723. end
  724. end)
  725.  
  726. mouse.KeyUp:connect(function(key)
  727. if key == "q" then
  728. attack = false
  729. end
  730. end)
  731.  
  732. local P = Instance.new("Part",game.Workspace.CurrentCamera)P.CanCollide = true P.Anchored = true P.Size = Vector3.new(15,1,15)
  733. P.CFrame = CFrame.new(c.HumanoidRootPart.Position)*CFrame.new(0,-3.5,0)P.Transparency = 0 P.Name = "FlightPart"
  734. P.BrickColor = BrickColor.new("Dark green") P.TopSurface = "Smooth" P.Material = "Grass"
  735. spawn(function()
  736. while true do
  737. P.CFrame = CFrame.new(c.HumanoidRootPart.Position.X,-0.6,c.HumanoidRootPart.Position.Z)
  738. swait()
  739. end
  740. end)
  741.  
  742. anim.Parent = nil
  743. sine = 0
  744.  
  745. while true do
  746. wait()
  747. if attack == false then
  748. thing = (c.HumanoidRootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  749. game.Workspace.CurrentCamera.FieldOfView = 70+thing/100
  750. if c.HumanoidRootPart.Velocity.Y > 1 then sine = sine + 1
  751. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(sine*thing*0.75), rd(0), rd(0)), 1)
  752. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(60), rd(0), rd(0)), 1)
  753. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(15), rd(25), rd(25)), 1)
  754. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  755. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(15), rd(-25), rd(-25)), 1)
  756. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  757. lerpz(RH, "C0", RHC0 * cf(0.5, 1.5, 0) * ang(rd(0), rd(0), rd(0)), 1)
  758. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  759. lerpz(LH, "C0", LHC0 * cf(-0.5, 1.5, 0) * ang(rd(0), rd(0), rd(0)), 1)
  760. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  761. elseif (c.HumanoidRootPart.Velocity * Vector3.new(1, 0, 1)).magnitude > 2 then
  762. sine = sine + 1 Sped = Sped + 0.1
  763. if thing <= 200 then
  764. if S2.PlaybackSpeed >= 1 then
  765. S2.PlaybackSpeed = 1
  766. else
  767. S2.PlaybackSpeed = thing/80
  768. end
  769. c.Humanoid.WalkSpeed = 16+(thing/1.5)+Sped
  770. S2.Volume = thing/20
  771. end
  772. if thing <= 200 then
  773. c.Humanoid.WalkSpeed = 16+(thing/1.5)+Sped
  774. S2.Volume = thing/20
  775. else
  776. c.Humanoid.WalkSpeed = 16+(thing/1.5)+Sped
  777. end
  778. if thing <= 100 then
  779. for i,v in pairs(c:children()) do
  780. if v.ClassName == "Part" then
  781. for i,v2 in pairs(v:children()) do
  782. if v2.ClassName == "Trail" then
  783. v2.Enabled = false
  784. v2.LightEmission = 1
  785. end
  786. end
  787. end
  788. end
  789. else
  790. for i,v in pairs(c:children()) do
  791. if v.ClassName == "Part" then
  792. for i,v2 in pairs(v:children()) do
  793. if v2.ClassName == "Trail" then
  794. v2.Lifetime = 2
  795. v2.Enabled = true
  796. end
  797. end
  798. end
  799. end
  800. end
  801. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(thing/7), rd(0), rd(0)), 1)
  802. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  803. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-thing/1.5)), 1)
  804. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  805. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(thing/1.5)), 1)
  806. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  807. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.cos(sine/2))*thing/1.25), 1)
  808. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  809. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.cos(sine/2))*thing/1.25), 1)
  810. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  811. else c.Humanoid.WalkSpeed = 16 Sped = 0 sine = sine + 1 S2.Volume = 0 S2.PlaybackSpeed = 0
  812. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  813. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  814. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.cos(sine/24)*4)), 0.5)
  815. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  816. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(math.cos(sine/24)*4)), 0.5)
  817. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  818. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  819. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  820. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  821. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  822. end
  823. for i,v in pairs (c:children()) do
  824. if v.ClassName == "Accessory" then
  825. for i,v2 in pairs (v:children()) do
  826. if v2.ClassName == "Part" then
  827. v2.Anchored = false
  828. end
  829. end
  830. end
  831. for i,v in pairs (c:children()) do
  832. if v.ClassName == "Part" then
  833. v.Anchored = false
  834. end
  835. end
  836. end
  837. end
  838. end
Add Comment
Please, Sign In to add comment