Advertisement
HenloMyDude

pumpvil

Oct 13th, 2019
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.92 KB | None | 0 0
  1.  
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6.  
  7. Player = owner
  8. Character = Player.Character
  9. Mouse = Player:GetMouse()
  10. Humanoid = Character.Humanoid
  11. RootPart = Character.HumanoidRootPart
  12. Torso = Character.Torso
  13. Head = Character.Head
  14. RightArm = Character["Right Arm"]
  15. LeftArm = Character["Left Arm"]
  16. RightLeg = Character["Right Leg"]
  17. LeftLeg = Character["Left Leg"]
  18. RootJoint = RootPart.RootJoint
  19. Neck = Torso.Neck
  20. RightShoulder = Torso["Right Shoulder"]
  21. LeftShoulder = Torso["Left Shoulder"]
  22. RightHip = Torso["Right Hip"]
  23. LeftHip = Torso["Left Hip"]
  24. IT = Instance.new
  25. CF = CFrame.new
  26. VT = Vector3.new
  27. RAD = math.rad
  28. C3 = Color3.new
  29. UD2 = UDim2.new
  30. BRICKC = BrickColor.new
  31. ANGLES = CFrame.Angles
  32. EULER = CFrame.fromEulerAnglesXYZ
  33. COS = math.cos
  34. ACOS = math.acos
  35. SIN = math.sin
  36. ASIN = math.asin
  37. ABS = math.abs
  38. MRANDOM = math.random
  39. FLOOR = math.floor
  40. Animation_Speed = 3
  41. local SIZE = 0.4
  42. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  43. local NECKC0 = CF(0, 1*SIZE, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  44. local RIGHTSHOULDERC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  45. local LEFTSHOULDERC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  46. RootPart.Size = RootPart.Size*SIZE
  47. Torso.Size = Torso.Size*SIZE
  48. RightArm.Size = RightArm.Size*SIZE
  49. RightLeg.Size = RightLeg.Size*SIZE
  50. LeftArm.Size = LeftArm.Size*SIZE
  51. LeftLeg.Size = LeftLeg.Size*SIZE
  52. RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
  53. RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
  54. Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
  55. Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180))
  56. RightShoulder.C1 = CF(0, 1.25 * SIZE, 1 * SIZE)
  57. LeftShoulder.C1 = CF(0, 1.25 * SIZE, 1 * SIZE)
  58. RightHip.C0 = CF(1 * SIZE, -1 * SIZE, -0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  59. LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, -0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  60. RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  61. LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  62. Head.Size = Head.Size*SIZE
  63. RootJoint.Parent = RootPart
  64. Neck.Parent = Torso
  65. RightShoulder.Parent = Torso
  66. LeftShoulder.Parent = Torso
  67. RightHip.Parent = Torso
  68. LeftHip.Parent = Torso
  69. ArtificialHB = Instance.new("BindableEvent", script)
  70. ArtificialHB.Name = "ArtificialHB"
  71. script:WaitForChild("ArtificialHB")
  72. Frame_Speed = 0.016666666666666666
  73. frame = Frame_Speed
  74. tf = 0
  75. allowframeloss = false
  76. tossremainder = false
  77. lastframe = tick()
  78. script.ArtificialHB:Fire()
  79. game:GetService("RunService").Heartbeat:connect(function(s, p)
  80. tf = tf + s
  81. if tf >= frame then
  82. if allowframeloss then
  83. ArtificialHB:Fire()
  84. lastframe = tick()
  85. else
  86. for i = 1, math.floor(tf / frame) do
  87. ArtificialHB:Fire()
  88. end
  89. lastframe = tick()
  90. end
  91. if tossremainder then
  92. tf = 0
  93. else
  94. tf = tf - frame * math.floor(tf / frame)
  95. end
  96. end
  97. end)
  98. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  99. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  100. end
  101. function PositiveAngle(NUMBER)
  102. if NUMBER >= 0 then
  103. NUMBER = 0
  104. end
  105. return NUMBER
  106. end
  107. function NegativeAngle(NUMBER)
  108. if NUMBER <= 0 then
  109. NUMBER = 0
  110. end
  111. return NUMBER
  112. end
  113. function Swait(NUMBER)
  114. if NUMBER == 0 or NUMBER == nil then
  115. ArtificialHB.Event:wait()
  116. else
  117. for i = 1, NUMBER do
  118. ArtificialHB.Event:wait()
  119. end
  120. end
  121. end
  122. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  123. local NEWMESH = IT(MESH)
  124. if MESH == "SpecialMesh" then
  125. NEWMESH.MeshType = MESHTYPE
  126. if MESHID ~= "nil" and MESHID ~= "" then
  127. NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID
  128. end
  129. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  130. NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID
  131. end
  132. end
  133. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  134. NEWMESH.Scale = SCALE
  135. NEWMESH.Parent = PARENT
  136. return NEWMESH
  137. end
  138. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  139. local NEWPART = IT("Part")
  140. NEWPART.formFactor = FORMFACTOR
  141. NEWPART.Reflectance = REFLECTANCE
  142. NEWPART.Transparency = TRANSPARENCY
  143. NEWPART.CanCollide = false
  144. NEWPART.Locked = true
  145. NEWPART.Anchored = true
  146. if ANCHOR == false then
  147. NEWPART.Anchored = false
  148. end
  149. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  150. NEWPART.Name = NAME
  151. NEWPART.Size = SIZE
  152. NEWPART.Position = Torso.Position
  153. NEWPART.Material = MATERIAL
  154. NEWPART:BreakJoints()
  155. NEWPART.Parent = PARENT
  156. return NEWPART
  157. end
  158. local weldBetween = function(a, b)
  159. local weldd = Instance.new("ManualWeld")
  160. weldd.Part0 = a
  161. weldd.Part1 = b
  162. weldd.C0 = CFrame.new()
  163. weldd.C1 = b.CFrame:inverse() * a.CFrame
  164. weldd.Parent = a
  165. return weldd
  166. end
  167. function QuaternionFromCFrame(cf)
  168. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  169. local trace = m00 + m11 + m22
  170. if trace > 0 then
  171. local s = math.sqrt(1 + trace)
  172. local recip = 0.5 / s
  173. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  174. else
  175. local i = 0
  176. if m00 < m11 then
  177. i = 1
  178. end
  179. if m22 > (i == 0 and m00 or m11) then
  180. i = 2
  181. end
  182. if i == 0 then
  183. local s = math.sqrt(m00 - m11 - m22 + 1)
  184. local recip = 0.5 / s
  185. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  186. elseif i == 1 then
  187. local s = math.sqrt(m11 - m22 - m00 + 1)
  188. local recip = 0.5 / s
  189. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  190. elseif i == 2 then
  191. local s = math.sqrt(m22 - m00 - m11 + 1)
  192. local recip = 0.5 / s
  193. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  194. end
  195. end
  196. end
  197. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  198. local xs, ys, zs = x + x, y + y, z + z
  199. local wx, wy, wz = w * xs, w * ys, w * zs
  200. local xx = x * xs
  201. local xy = x * ys
  202. local xz = x * zs
  203. local yy = y * ys
  204. local yz = y * zs
  205. local zz = z * zs
  206. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  207. end
  208. function QuaternionSlerp(a, b, t)
  209. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  210. local startInterp, finishInterp
  211. if cosTheta >= 1.0E-4 then
  212. if 1 - cosTheta > 1.0E-4 then
  213. local theta = ACOS(cosTheta)
  214. local invSinTheta = 1 / SIN(theta)
  215. startInterp = SIN((1 - t) * theta) * invSinTheta
  216. finishInterp = SIN(t * theta) * invSinTheta
  217. else
  218. startInterp = 1 - t
  219. finishInterp = t
  220. end
  221. elseif 1 + cosTheta > 1.0E-4 then
  222. local theta = ACOS(-cosTheta)
  223. local invSinTheta = 1 / SIN(theta)
  224. startInterp = SIN((t - 1) * theta) * invSinTheta
  225. finishInterp = SIN(t * theta) * invSinTheta
  226. else
  227. startInterp = t - 1
  228. finishInterp = t
  229. end
  230. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  231. end
  232. function Clerp(a, b, t)
  233. local qa = {
  234. QuaternionFromCFrame(a)
  235. }
  236. local qb = {
  237. QuaternionFromCFrame(b)
  238. }
  239. local ax, ay, az = a.x, a.y, a.z
  240. local bx, by, bz = b.x, b.y, b.z
  241. local _t = 1 - t
  242. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  243. end
  244. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  245. local label = IT("TextLabel")
  246. label.BackgroundTransparency = 1
  247. label.Size = UD2(1, 0, 1, 0)
  248. label.Position = UD2(0, 0, 0, 0)
  249. label.TextColor3 = TEXTCOLOR
  250. label.TextStrokeTransparency = STROKETRANSPARENCY
  251. label.TextTransparency = TRANSPARENCY
  252. label.FontSize = TEXTFONTSIZE
  253. label.Font = TEXTFONT
  254. label.BorderSizePixel = BORDERSIZEPIXEL
  255. label.TextScaled = false
  256. label.Text = TEXT
  257. label.Name = NAME
  258. label.Parent = PARENT
  259. return label
  260. end
  261. function NoOutlines(PART)
  262. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  263. end
  264. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  265. local NEWWELD = IT(TYPE)
  266. NEWWELD.Part0 = PART0
  267. NEWWELD.Part1 = PART1
  268. NEWWELD.C0 = C0
  269. NEWWELD.C1 = C1
  270. NEWWELD.Parent = PARENT
  271. return NEWWELD
  272. end
  273. function MakeForm(PART, TYPE)
  274. if TYPE == "Cyl" then
  275. local MSH = IT("CylinderMesh", PART)
  276. elseif TYPE == "Ball" then
  277. local MSH = IT("SpecialMesh", PART)
  278. MSH.MeshType = "Sphere"
  279. elseif TYPE == "Wedge" then
  280. local MSH = IT("SpecialMesh", PART)
  281. MSH.MeshType = "Wedge"
  282. end
  283. end
  284. Debris = game:GetService("Debris")
  285. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  286. local DIRECTION = CF(StartPos, EndPos).lookVector
  287. local Ignore = type(Ignore) == "table" and Ignore or {Ignore}
  288. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, DIRECTION * Distance), Ignore)
  289. end
  290. local Particle = IT("ParticleEmitter", nil)
  291. Particle.Enabled = false
  292. Particle.LightEmission = 0.9
  293. Particle.Rate = 150
  294. Particle.ZOffset = 0.2
  295. Particle.Rotation = NumberRange.new(-180, 180)
  296. ANIM = "Idle"
  297. local top = Instance.new("Shirt")
  298. top.ShirtTemplate = "rbxassetid://4067677780"
  299. top.Parent = Character
  300. top.Name = "Cloth"
  301. local bottom = Instance.new("Pants")
  302. bottom.PantsTemplate = "rbxassetid://4067677780"
  303. bottom.Parent = Character
  304. bottom.Name = "Cloth"
  305. function ParticleEmitter(Table)
  306. local PRTCL = Particle:Clone()
  307. local Color1 = Table.Color1 or C3(1, 1, 1)
  308. local Color2 = Table.Color2 or C3(1, 1, 1)
  309. local Speed = Table.Speed or 5
  310. local Drag = Table.Drag or 0
  311. local Size1 = Table.Size1 or 1
  312. local Size2 = Table.Size2 or 5
  313. local Lifetime1 = Table.Lifetime1 or 1
  314. local Lifetime2 = Table.Lifetime2 or 1.5
  315. local Parent = Table.Parent or Torso
  316. local Emit = Table.Emit or 100
  317. local Offset = Table.Offset or 360
  318. local Acel = Table.Acel or VT(0, 0, 0)
  319. local Enabled = Table.Enabled or false
  320. local Texture = Table.Texture or "281983280"
  321. local RotS = Table.RotSpeed or NumberRange.new(-15, 15)
  322. local Trans1 = Table.Transparency1 or 1
  323. local Trans2 = Table.Transparency2 or 0
  324. PRTCL.Parent = Parent
  325. PRTCL.RotSpeed = RotS
  326. PRTCL.Transparency = NumberSequence.new({
  327. NumberSequenceKeypoint.new(0, Trans1),
  328. NumberSequenceKeypoint.new(1, Trans2)
  329. })
  330. PRTCL.Texture = "http://www.roblox.com/asset/?id=" .. Texture
  331. PRTCL.Color = ColorSequence.new(Color1, Color2)
  332. PRTCL.Size = NumberSequence.new(Size1, Size2)
  333. PRTCL.Lifetime = NumberRange.new(Lifetime1, Lifetime2)
  334. PRTCL.Speed = NumberRange.new(Speed)
  335. PRTCL.VelocitySpread = Offset
  336. PRTCL.Drag = Drag
  337. PRTCL.Acceleration = Acel
  338. if Enabled == false then
  339. PRTCL:Emit(Emit)
  340. Debris:AddItem(PRTCL, Lifetime2)
  341. else
  342. PRTCL.Enabled = true
  343. end
  344. return PRTCL
  345. end
  346. function GetRoot(MODEL, ROOT)
  347. if ROOT == true then
  348. return MODEL:FindFirstChild("HumanoidRootPart") or MODEL:FindFirstChild("Torso") or MODEL:FindFirstChild("UpperTorso")
  349. else
  350. return MODEL:FindFirstChild("Torso") or MODEL:FindFirstChild("UpperTorso")
  351. end
  352. end
  353. local FAKEHEAD = CreatePart(3, Character, "Fabric", 0, 0, BRICKC("Pearl"), "NewHead", VT(1, 1, 1), true)
  354. FAKEHEAD.CanCollide = false
  355. CreateMesh("SpecialMesh", FAKEHEAD, "FileMesh", "16973748", "16973739", VT(1*SIZE, 1*SIZE, 1*SIZE), VT(0, 0, 0))
  356. local SCARF = CreatePart(3, Character, "Fabric", 0, 0, BRICKC("Black"), "Scarf", VT(1, 1, 1), false)
  357. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, SCARF, CF(0, 0, 0), CF(0, 0, 0))
  358. --local GLASSES = CreatePart(3, Character, "Fabric", 0, 0, BRICKC("Pearl"), "Scarf", VT(1, 1, 0.9), false)
  359. --GLASSES.CFrame = FAKEHEAD.CFrame
  360. CreateMesh("SpecialMesh", SCARF, "FileMesh", "448710145", "", VT(0.6*SIZE, 1*SIZE, 1*SIZE), VT(0, 0.15, 0))
  361. --CreateMesh("SpecialMesh", GLASSES, "FileMesh", "134026193", "134026217", VT(1.5, 1, 2), VT(0, 0.3, -0.3))
  362. local FACE1 = CreatePart(3, Character, "Neon", 0, 0, BRICKC("Persimmon"), "Fire", VT(1.3*SIZE, 1*SIZE, 0.6*SIZE), false)
  363. MakeForm(FACE1, "Ball")
  364. local FACE2 = CreatePart(3, Character, "Neon", 0, 0, BRICKC("Persimmon"), "Fire", VT(1.3*SIZE, 0.65*SIZE, 0.55*SIZE), false)
  365. MakeForm(FACE2, "Ball")
  366. local FACE3 = CreatePart(3, Character, "Neon", 0, 0, BRICKC("Persimmon"), "Fire", VT(1.3*SIZE, 0.5*SIZE, 0.6*SIZE), false)
  367. MakeForm(FACE3, "Ball")
  368. local FACE4 = CreatePart(3, Character, "Neon", 0, 0, BRICKC("Persimmon"), "Fire", VT(1*SIZE, 0.1*SIZE, 1*SIZE), false)
  369. MakeForm(FACE4, "Ball")
  370. --CreateWeldOrSnapOrMotor("Weld", FAKEHEAD, FAKEHEAD, GLASSES, CF(0, 0, 0), CF(0, 0, 0))
  371. local L1 = CreateWeldOrSnapOrMotor("Weld", FAKEHEAD, FAKEHEAD, FACE1, CF(0*SIZE, 0*SIZE, -0.5*SIZE), CF(0, 0, 0))
  372. local L2 = CreateWeldOrSnapOrMotor("Weld", FAKEHEAD, FAKEHEAD, FACE2, CF(0*SIZE, 0.2*SIZE, -0.5*SIZE), CF(0, 0, 0))
  373. local L3 = CreateWeldOrSnapOrMotor("Weld", FAKEHEAD, FAKEHEAD, FACE3, CF(0*SIZE, 0.3*SIZE, -0.35*SIZE), CF(0, 0, 0))
  374. local L4 = CreateWeldOrSnapOrMotor("Weld", FAKEHEAD, FAKEHEAD, FACE4, CF(0*SIZE, -0.5*SIZE, 0*SIZE), CF(0, 0, 0))
  375. local NECKK
  376. Head:ClearAllChildren()
  377. Head.Transparency = 1
  378. local NCK = IT("Attachment", Torso)
  379. NCK.Position = VT(0, 1, 0)
  380. --[[
  381. local NECKFIRE = ParticleEmitter({
  382. Acel = VT(0, 3.5, 0),
  383. Speed = 1.5,
  384. RotSpeed = NumberRange.new(-15, 15),
  385. Drag = 0.1,
  386. Size1 = 0.6*SIZE,
  387. Size2 = 0*SIZE,
  388. Lifetime1 = 0,
  389. Lifetime2 = 0.45,
  390. Parent = NCK,
  391. Emit = 100,
  392. Offset = 360*SIZE,
  393. Enabled = true,
  394. Color1 = BRICKC("Persimmon").Color,
  395. Color2 = BRICKC("Persimmon").Color,
  396. Texture = "296874871"
  397. })
  398. NECKFIRE.LockedToPart = true
  399. NECKFIRE.Rate = 999
  400. ]]--
  401. print("Pump-vil by youngmacka123")
  402. local HEADTURN = true
  403.  
  404. local char = Character
  405. local RS = char.Torso["Right Shoulder"]
  406. local LS = char.Torso["Left Shoulder"]
  407. local RH = char.Torso["Right Hip"]
  408. local LH = char.Torso["Left Hip"]
  409. local neck = char.Torso["Neck"]
  410. local rootj = char.HumanoidRootPart.RootJoint
  411. local sine = 0
  412. local RSnor = RS.C0
  413. local LSnor = LS.C0
  414. local RHnor = RH.C0
  415. local LHnor = LH.C0
  416. local rootjnor = rootj.C0
  417. local necknor = neck.C0
  418. local RootPart = rootj.Parent
  419. local Animator = Humanoid.Animator
  420. local SINE = 0
  421. local KEYHOLD = false
  422. local Rooted = false
  423. local ATTACK = false
  424. local HOLD = false
  425. local BMUSIC = IT("Sound", RootPart)
  426. local SONGID = 0
  427. local VOLUME = 10
  428. local PITCH = 1
  429.  
  430. function Taunt()
  431. ATTACK = true
  432. Rooted = true
  433. HEADTURN = false
  434. local function E()
  435. for i = 0, 0.45, 0.1 / Animation_Speed do
  436. Swait()
  437. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -0.035) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed)
  438. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  439. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(2.1*SIZE, 0.5, 0.4) * ANGLES(RAD(45), RAD(-12), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  440. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-2.1*SIZE, 0.5, 0.4) * ANGLES(RAD(45), RAD(12), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  441. RightHip.C0 = Clerp(RightHip.C0, CF(0, -0.5, 0) * ANGLES(RAD(35), RAD(85), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  442. LeftHip.C0 = Clerp(LeftHip.C0, CF(0, -0.5, 0) * ANGLES(RAD(35), RAD(-85), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  443. end
  444. end
  445. repeat
  446. E()
  447. SONGID = 2377141094
  448. for i = 0, 0.45, 0.1 / Animation_Speed do
  449. Swait()
  450. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.08, 0, 0) * ANGLES(RAD(0), RAD(5), RAD(0)), 1 / Animation_Speed)
  451. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  452. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(2*SIZE, 0*SIZE, 0) * ANGLES(RAD(160), RAD(-12), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  453. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-2*SIZE, 0*SIZE, 0) * ANGLES(RAD(160), RAD(12), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  454. RightHip.C0 = Clerp(RightHip.C0, CF(0, -0.5, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(3), RAD(0), RAD(0)), 1 / Animation_Speed)
  455. LeftHip.C0 = Clerp(LeftHip.C0, CF(0, -0.5, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-7), RAD(0), RAD(0)), 1 / Animation_Speed)
  456. end
  457. E()
  458. for i = 0, 0.45, 0.1 / Animation_Speed do
  459. Swait()
  460. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(-0.08, 0, 0) * ANGLES(RAD(0), RAD(-5), RAD(0)), 1 / Animation_Speed)
  461. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  462. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(2*SIZE, 0*SIZE, 0) * ANGLES(RAD(160), RAD(-12), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  463. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-2*SIZE, 0*SIZE, 0) * ANGLES(RAD(160), RAD(12), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  464. RightHip.C0 = Clerp(RightHip.C0, CF(0, -0.5, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-7), RAD(0), RAD(0)), 1 / Animation_Speed)
  465. LeftHip.C0 = Clerp(LeftHip.C0, CF(0, -0.5, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(3), RAD(0), RAD(0)), 1 / Animation_Speed)
  466. end
  467. until KEYHOLD == false
  468. HEADTURN = true
  469. ATTACK = false
  470. Rooted = false
  471. SONGID = 0
  472. end
  473.  
  474. function MouseDown(Mouse)
  475. if ATTACK == false then
  476. end
  477. end
  478. function MouseUp(Mouse)
  479. HOLD = false
  480. end
  481. function KeyDown(Key)
  482. KEYHOLD = true
  483. if Key == "t" and ATTACK == false then
  484. Taunt()
  485. end
  486. if Key == "n" and ATTACK == false then
  487. if HEADTURN == true then
  488. HEADTURN = false
  489. elseif HEADTURN == false then
  490. HEADTURN = true
  491. end
  492. end
  493. end
  494. function KeyUp(Key)
  495. KEYHOLD = false
  496. end
  497. Mouse.Button1Down:connect(function(NEWKEY)
  498. MouseDown(NEWKEY)
  499. end)
  500. Mouse.Button1Up:connect(function(NEWKEY)
  501. MouseUp(NEWKEY)
  502. end)
  503. Mouse.KeyDown:connect(function(NEWKEY)
  504. KeyDown(NEWKEY)
  505. end)
  506. Mouse.KeyUp:connect(function(NEWKEY)
  507. KeyUp(NEWKEY)
  508. end)
  509.  
  510. while true do
  511. Swait()
  512. SINE = SINE + 1
  513. Animator.Parent = nil
  514. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  515. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  516. local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4, Character)
  517. local WALKSPEEDVALUE = 8 / (Humanoid.WalkSpeed / 16)
  518. local SPEED = WALKSPEEDVALUE
  519. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  520. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0.1 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  521. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5*SIZE, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.6 / Animation_Speed)
  522. RightHip.C1 = Clerp(RightHip.C1, CF(0.2, 0.8, 0 - 0 * COS(sine / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0 + 0 * COS(SINE / WALKSPEEDVALUE))), 0.6 * SPEED / Animation_Speed)
  523. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.2, 0.8, 0 - 0 * COS(sine / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-0 + 0 * COS(SINE / WALKSPEEDVALUE))), 0.6 * SPEED / Animation_Speed)
  524. elseif ANIM ~= "Walk" or TORSOVELOCITY < 1 then
  525. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  526. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5*SIZE, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  527. RightHip.C1 = Clerp(RightHip.C1, CF(-0.2, 0.25, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.7 / Animation_Speed)
  528. LeftHip.C1 = Clerp(LeftHip.C1, CF(0.2, 0.25, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.7 / Animation_Speed)
  529. end
  530. if TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  531. ANIM = "Idle"
  532. if ATTACK == false then
  533. rootj.C0 = Clerp(rootj.C0, ROOTC0 * CF(0 - 0 * SIN(SINE / 24)*SIZE, 0*SIZE, 0 + 0.01 * COS(SINE / 12)*SIZE) * ANGLES(RAD(0), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  534. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0 - 5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  535. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.6, 0.75, 0) * ANGLES(RAD(0), RAD(-12 + 2.5 * SIN(SINE / 12)), RAD(55 + 2.5 * SIN(SINE / 12) - 2.5 * COS(SINE / 6))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  536. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.6, 0.75, 0) * ANGLES(RAD(0), RAD(12 - 2.5 * SIN(SINE / 12)), RAD(-55 - 2.5 * SIN(SINE / 12) - 2.5 * COS(SINE / 6))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  537. RightHip.C0 = Clerp(RightHip.C0, CF(0, -0.5 + 0.001 * SIN(SINE / 24) - 0.02 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  538. LeftHip.C0 = Clerp(LeftHip.C0, CF(0, -0.5 - 0.001 * SIN(SINE / 24) - 0.02 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  539. end
  540. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  541. ANIM = "Walk"
  542. if ATTACK == false then
  543. if Humanoid.WalkSpeed < 25 then
  544. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -0.05) * ANGLES(RAD(5), RAD(0), RAD(-7 * COS(SINE / WALKSPEEDVALUE))), 1 / Animation_Speed)
  545. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(5 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(7 * COS(SINE / WALKSPEEDVALUE))), 1 / Animation_Speed)
  546. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.6, 0.75, 0 + 0.25 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(0), RAD(50 - 5 * SIN(SINE / (WALKSPEEDVALUE / 2)))) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  547. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.6, 0.75, 0 - 0.25 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(0), RAD(-50 + 5 * SIN(SINE / (WALKSPEEDVALUE / 2)))) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  548. RightHip.C0 = Clerp(RightHip.C0, CF(0, 0, 0 + 0.25 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10 + 50 * COS(SINE / WALKSPEEDVALUE))), 2 / Animation_Speed)
  549. LeftHip.C0 = Clerp(LeftHip.C0, CF(0, 0, 0 - 0.25 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-10 + 50 * COS(SINE / WALKSPEEDVALUE))), 2 / Animation_Speed)
  550. else
  551. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  552. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  553. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.6, 0.4) * ANGLES(RAD(-125 + 5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(-12 + 5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  554. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.6, 0.4) * ANGLES(RAD(-125 + 5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(12 - 5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  555. RightHip.C0 = Clerp(RightHip.C0, CF(0, -0.5, 0 + 0.1 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(-45), RAD(85), RAD(0)) * ANGLES(RAD(10 + 50 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0 + 0 * COS(SINE / WALKSPEEDVALUE))), 1 / Animation_Speed)
  556. LeftHip.C0 = Clerp(LeftHip.C0, CF(-0, -0.5, 0 - 0.1 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(-45), RAD(-85), RAD(0)) * ANGLES(RAD(-10 + 50 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-0 + 0 * COS(SINE / WALKSPEEDVALUE))), 1 / Animation_Speed)
  557. end
  558. end
  559. end
  560. if HEADTURN == true and ANIM == "Idle" then
  561. if NECKK then
  562. NECKK:Remove()
  563. NECKK = nil
  564. end
  565. if Mouse.Hit.p then
  566. FAKEHEAD.CFrame = CF(Head.CFrame * CF(0, 0.5, 0).p) * ANGLES(RAD(0), RAD(FAKEHEAD.Orientation.Y), RAD(0))
  567. FAKEHEAD.CFrame = Clerp(FAKEHEAD.CFrame, CF(FAKEHEAD.Position, Mouse.Hit.p), 0.1)
  568. end
  569. FAKEHEAD.Anchored = true
  570. --GLASSES.CFrame = FAKEHEAD.CFrame
  571. FACE1.CFrame = FAKEHEAD.CFrame * L1.C0
  572. FACE2.CFrame = FAKEHEAD.CFrame * L2.C0
  573. FACE3.CFrame = FAKEHEAD.CFrame * L3.C0
  574. FACE4.CFrame = FAKEHEAD.CFrame * L4.C0
  575. FAKEHEAD.Velocity = VT(0, 0, 0)
  576. --GLASSES.Velocity = VT(0, 0, 0)
  577. FACE1.Velocity = VT(0, 0, 0)
  578. FACE2.Velocity = VT(0, 0, 0)
  579. FACE3.Velocity = VT(0, 0, 0)
  580. FACE4.Velocity = VT(0, 0, 0)
  581. else
  582. if NECKK == nil then
  583. NECKK = weldBetween(FAKEHEAD, Head)
  584. else
  585. NECKK.C1 = Clerp(NECKK.C1, CF(0, 0.55, 0), 0.2)
  586. end
  587. FAKEHEAD.Anchored = false
  588. end
  589. BMUSIC.SoundId = "rbxassetid://" .. SONGID
  590. BMUSIC.Looped = true
  591. BMUSIC.Pitch = PITCH
  592. BMUSIC.Volume = VOLUME
  593. BMUSIC.Playing = true
  594. BMUSIC.EmitterSize = 50
  595. if BMUSIC.Parent ~= RootPart then
  596. print("Fixing music")
  597. BMUSIC = IT("Sound", RootPart)
  598. BMUSIC.SoundId = "rbxassetid://" .. SONGID
  599. BMUSIC.Looped = true
  600. BMUSIC.Pitch = PITCH
  601. BMUSIC.Volume = VOLUME
  602. BMUSIC.Playing = true
  603. BMUSIC.EmitterSize = 50
  604. BMUSIC.TimePosition = TIMESTAMP
  605. FIXING = true
  606. elseif FIXING == false then
  607. TIMESTAMP = BMUSIC.TimePosition
  608. else
  609. FIXING = false
  610. end
  611. for _, c in pairs(Character:GetChildren()) do
  612. if c.ClassName == "Part" and c.Name ~= "Eye" and c ~= FACE1 and c ~= FACE2 and c ~= FACE3 and c ~= FACE4 and c ~= FAKEHEAD then
  613. c.Material = "Fabric"
  614. if c:FindFirstChildOfClass("ParticleEmitter") then
  615. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  616. end
  617. c.Color = C3(0, 0, 0)
  618. if c == Head then
  619. c:ClearAllChildren()
  620. c.Transparency = 1
  621. end
  622. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  623. c:remove()
  624. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  625. c:remove()
  626. end
  627. end
  628. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement