Advertisement
RobloxScriptzzz

Script that is dumb roblox

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