Advertisement
vL4d_4eVer

Party breaker Roblox Script

Apr 12th, 2018
676
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 41.22 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,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5.     print("FE Compatibility code by Mokiros")
  6.     script.Parent = Player.Character
  7.  
  8.     --RemoteEvent for communicating
  9.     local Event = Instance.new("RemoteEvent")
  10.     Event.Name = "UserInput_Event"
  11.  
  12.     --Fake event to make stuff like Mouse.KeyDown work
  13.     local function fakeEvent()
  14.         local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  15.         t.connect = t.Connect
  16.         return t
  17.     end
  18.  
  19.     --Creating fake input objects with fake variables
  20.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  21.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  22.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  23.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  24.     end}
  25.     --Merged 2 functions into one by checking amount of arguments
  26.     CAS.UnbindAction = CAS.BindAction
  27.  
  28.     --This function will trigger the events that have been :Connect()'ed
  29.     local function te(self,ev,...)
  30.         local t = m[ev]
  31.         if t and t._fakeEvent and t.Function then
  32.             t.Function(...)
  33.         end
  34.     end
  35.     m.TrigEvent = te
  36.     UIS.TrigEvent = te
  37.  
  38.     Event.OnServerEvent:Connect(function(plr,io)
  39.         if plr~=Player then return end
  40.         m.Target = io.Target
  41.         m.Hit = io.Hit
  42.         if not io.isMouse then
  43.             local b = io.UserInputState == Enum.UserInputState.Begin
  44.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46.             end
  47.             for _,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.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56.         end
  57.     end)
  58.     Event.Parent = NLS([==[
  59.     local Player = game:GetService("Players").LocalPlayer
  60.     local Event = script:WaitForChild("UserInput_Event")
  61.  
  62.     local Mouse = Player:GetMouse()
  63.     local UIS = game:GetService("UserInputService")
  64.     local input = function(io,a)
  65.         if a then return end
  66.         --Since InputObject is a client-side instance, we create and pass table instead
  67.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  68.     end
  69.     UIS.InputBegan:Connect(input)
  70.     UIS.InputEnded:Connect(input)
  71.  
  72.     local h,t
  73.     --Give the server mouse data 30 times every second, but only if the values changed
  74.     --If player is not moving their mouse, client won't fire events
  75.     while wait(1/30) do
  76.         if h~=Mouse.Hit or t~=Mouse.Target then
  77.             h,t=Mouse.Hit,Mouse.Target
  78.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  79.         end
  80.     end]==],Player.Character)
  81.     local _rg = game
  82.     local function FakeService(t,RealService)
  83.         t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  84.         return setmetatable(t,{
  85.             __index = function(self,k)
  86.                 local s = rawget(self,"_RealService")
  87.                 if s then return s[k] end
  88.             end,
  89.             __newindex = function(self,k,v)
  90.                 local s = rawget(self,"_RealService")
  91.                 if s then s[k]=v end
  92.             end,
  93.         })
  94.     end
  95.     local g = FakeService({
  96.         GetService = function(self,s)
  97.             return self[s]
  98.         end,
  99.         Players = FakeService({
  100.             LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  101.         },"Players"),
  102.         UserInputService = FakeService(UIS,"UserInputService"),
  103.         ContextActionService = FakeService(CAS,"ContextActionService"),
  104.         RunService = FakeService({RenderStepped=game:GetService("RunService").Heartbeat},"RunService")
  105.     },game)
  106.     rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  107.     getmetatable(g).__index=function(self,s)
  108.         return _rg:GetService(s) or typeof(_rg[s])=="function"
  109.         and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  110.     end
  111.     game = g
  112.     owner = g.Players.LocalPlayer
  113. end
  114. --//The Pacifist + Party breaker\\--
  115. --//Made by vlad20020\\--
  116. --//Char.\\--
  117. local plr = game:GetService("Players").LocalPlayer
  118. print('Made by vlad20020. Enjoy '..plr.Name)
  119. local char = plr.Character
  120. local head = char.Head
  121. local ra = char["Right Arm"]
  122. local la = char["Left Arm"]
  123. local rl = char["Right Leg"]
  124. local ll = char["Left Leg"]
  125. local tos = char.Torso
  126. -------------//Parts\\-------------
  127. local ff = Instance.new("ForceField", char)
  128. ff.Visible=false
  129. local p = Instance.new("Part", la)
  130. local p1 = Instance.new("Part", ll)
  131. local p2 = Instance.new("Part", ra)
  132. local p3 = Instance.new("Part", rl)
  133. local p4 = Instance.new("Part", la)
  134. local p5 = Instance.new("Part", ll)
  135. local p6 = Instance.new("Part", ra)
  136. local p7 = Instance.new("Part", rl)
  137. local p8 = Instance.new("Part", la)
  138. local p9 = Instance.new("Part", ll)
  139. local p10 = Instance.new("Part", ra)
  140. local p11 = Instance.new("Part", rl)
  141. local sm = Instance.new("SpecialMesh", p)
  142. local sm1 = Instance.new("SpecialMesh", p1)
  143. local sm2 = Instance.new("SpecialMesh", p2)
  144. local sm3 = Instance.new("SpecialMesh", p3)
  145. local sm4 = Instance.new("SpecialMesh", p4)
  146. local sm5 = Instance.new("SpecialMesh", p5)
  147. local sm6 = Instance.new("SpecialMesh", p6)
  148. local sm7 = Instance.new("SpecialMesh", p7)
  149. local sm8 = Instance.new("SpecialMesh", p8)
  150. local sm9 = Instance.new("SpecialMesh", p9)
  151. local sm10 = Instance.new("SpecialMesh", p10)
  152. local sm11 = Instance.new("SpecialMesh", p11)
  153. local mus = Instance.new("Sound", tos)
  154. local w = Instance.new("WeldConstraint", la)
  155. local w1 = Instance.new("WeldConstraint", ll)
  156. local w2 = Instance.new("WeldConstraint", ra)
  157. local w3 = Instance.new("WeldConstraint", rl)
  158. local w4 = Instance.new("WeldConstraint", la)
  159. local w5 = Instance.new("WeldConstraint", ll)
  160. local w6 = Instance.new("WeldConstraint", ra)
  161. local w7 = Instance.new("WeldConstraint", rl)
  162. local w8 = Instance.new("WeldConstraint", la)
  163. local w9 = Instance.new("WeldConstraint", ll)
  164. local w10 = Instance.new("WeldConstraint", ra)
  165. local w11 = Instance.new("WeldConstraint", rl)
  166. -------------//The Pacifist\\-------------
  167. script.Parent = nil
  168. Character = game.Players.LocalPlayer.Character
  169. Humanoid = Character.Humanoid
  170. if Humanoid:findFirstChild("Animate") then
  171.   Humanoid:findFirstChild("Animate"):Destroy()
  172. end
  173. Player = game:GetService("Players").LocalPlayer
  174. Character = Player.Character
  175. PlayerGui = Player.PlayerGui
  176. Backpack = Player.Backpack
  177. Torso = Character.Torso
  178. Head = Character.Head
  179. Humanoid = Character.Humanoid
  180. m = Instance.new("Model", Character)
  181. LeftArm = Character["Left Arm"]
  182. LeftLeg = Character["Left Leg"]
  183. RightArm = Character["Right Arm"]
  184. RightLeg = Character["Right Leg"]
  185. LS = Torso["Left Shoulder"]
  186. LH = Torso["Left Hip"]
  187. RS = Torso["Right Shoulder"]
  188. RH = Torso["Right Hip"]
  189. Face = Head.face
  190. Neck = Torso.Neck
  191. attacktype = 1
  192. vt = Vector3.new
  193. cf = CFrame.new
  194. euler = CFrame.fromEulerAnglesXYZ
  195. angles = CFrame.Angles
  196. cloaked = false
  197. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  198. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  199. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  200. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  201. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  202. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  203. RootPart = Character.HumanoidRootPart
  204. RootJoint = RootPart.RootJoint
  205. RootCF = euler(-1.57, 0, 3.14)
  206. attack = false
  207. attackdebounce = false
  208. deb = false
  209. equipped = true
  210. hand = false
  211. MMouse = nil
  212. combo = 0
  213. mana = 0
  214. trispeed = 0.2
  215. attackmode = "none"
  216. local idle = 0
  217. local Anim = "Idle"
  218. local gun = true
  219. local shoot = true
  220. player = nil
  221. mana = 0
  222. local defensevalue = 0.3
  223. local speedvalue = 1
  224. local damagevalue = 1
  225. local cf = CFrame.new
  226. local mr = math.rad
  227. local angles = CFrame.Angles
  228. local ud = UDim2.new
  229. local c3 = Color3.new
  230. local stats = Instance.new("Folder", Character)
  231. stats.Name = "Stats"
  232. local block = Instance.new("BoolValue", stats)
  233. block.Name = "Block"
  234. block.Value = false
  235. local stun = Instance.new("BoolValue", stats)
  236. stun.Name = "Stun"
  237. stun.Value = false
  238. local defense = Instance.new("NumberValue", stats)
  239. defense.Name = "Defence"
  240. defense.Value = defensevalue
  241. local speed = Instance.new("NumberValue", stats)
  242. speed.Name = "Speed"
  243. speed.Value = speedvalue
  244. local damagea = Instance.new("NumberValue", stats)
  245. damagea.Name = "Damage"
  246. damagea.Value = damagevalue
  247. Humanoid = Character.Humanoid
  248. if Humanoid:FindFirstChild("Animator") then
  249.   Humanoid:FindFirstChild("Animator"):Destroy()
  250. end
  251. Humanoid.WalkSpeed = 3
  252. Colorpart1 = Torso.BrickColor.r
  253. Colorpart2 = Torso.BrickColor.g
  254. Colorpart3 = Torso.BrickColor.b
  255. CloakEffectLight2 = Instance.new("PointLight", Torso)
  256. CloakEffectLight2.Color = Color3.new(Colorpart1, Colorpart2, Colorpart3)
  257. CloakEffectLight2.Range = 7.5
  258. CloakEffectLight2.Brightness = 7.5
  259. CloakEffectLight2.Enabled = true
  260. mouse = Player:GetMouse()
  261. RSH = nil
  262. LSH = nil
  263. RW = Instance.new("Motor")
  264. LW = Instance.new("Motor")
  265. RW.Name = "Right Shoulder"
  266. LW.Name = "Left Shoulder"
  267. LH = Torso["Left Hip"]
  268. RH = Torso["Right Hip"]
  269. TorsoColor = Torso.BrickColor
  270. NoOutline = function(Part)
  271.  
  272.   Part.TopSurface = 10
  273. end
  274.  
  275. player = Player
  276. ch = Character
  277. RSH = ch.Torso["Right Shoulder"]
  278. LSH = ch.Torso["Left Shoulder"]
  279. RSH.Parent = nil
  280. LSH.Parent = nil
  281. RW.Name = "Right Shoulder"
  282. RW.Part0 = ch.Torso
  283. RW.C0 = cf(1.5, 0.5, 0)
  284. RW.C1 = cf(0, 0.5, 0)
  285. RW.Part1 = ch["Right Arm"]
  286. RW.Parent = ch.Torso
  287. LW.Name = "Left Shoulder"
  288. LW.Part0 = ch.Torso
  289. LW.C0 = cf(-1.5, 0.5, 0)
  290. LW.C1 = cf(0, 0.5, 0)
  291. LW.Part1 = ch["Left Arm"]
  292. LW.Parent = ch.Torso
  293. local weldBetween = function(a, b)
  294.  
  295.   local weldd = Instance.new("ManualWeld")
  296.   weldd.Part0 = a
  297.   weldd.Part1 = b
  298.   weldd.C0 = CFrame.new()
  299.   weldd.C1 = b.CFrame:inverse() * a.CFrame
  300.   weldd.Parent = a
  301.   return weldd
  302. end
  303.  
  304. fat = Instance.new("BindableEvent", script)
  305. fat.Name = "Heartbeat"
  306. script:WaitForChild("Heartbeat")
  307. frame = 1/30
  308. tf = 0
  309. allowframeloss = false
  310. tossremainder = false
  311. lastframe = tick()
  312. script.Heartbeat:Fire()
  313. game:GetService("RunService").Heartbeat:connect(function(s, p)
  314.  
  315.   tf = tf + s
  316.   if frame <= tf then
  317.     if allowframeloss then
  318.       script.Heartbeat:Fire()
  319.       lastframe = tick()
  320.     else
  321.       for i = 1, math.floor(tf / frame) do
  322.         script.Heartbeat:Fire()
  323.       end
  324.       lastframe = tick()
  325.     end
  326.     if tossremainder then
  327.       tf = 0
  328.     else
  329.       tf = tf - frame * math.floor(tf / frame)
  330.     end
  331.   end
  332. end
  333. )
  334. local CFrameFromTopBack = function(at, top, back)
  335.  
  336.   local right = top:Cross(back)
  337.   return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  338. end
  339.  
  340. Triangle = function(a, b, c)
  341.  
  342.   local edg1 = c - a:Dot(b - a.unit)
  343.   local edg2 = a - b:Dot(c - b.unit)
  344.   local edg3 = b - c:Dot(a - c.unit)
  345.   if edg1 <= b - a.magnitude and edg1 >= 0 then
  346.     a = a
  347.   else
  348.     -- DECOMPILER ERROR at PC35: Overwrote pending register: R1 in 'AssignReg'
  349.  
  350.     if edg2 <= c - b.magnitude and edg2 >= 0 then
  351.       a = b
  352.     else
  353.       -- DECOMPILER ERROR at PC46: Overwrote pending register: R2 in 'AssignReg'
  354.  
  355.       -- DECOMPILER ERROR at PC47: Overwrote pending register: R1 in 'AssignReg'
  356.  
  357.       if edg3 <= a - c.magnitude and edg3 >= 0 then
  358.         a = c
  359.       else
  360.         assert(false, "unreachable")
  361.       end
  362.     end
  363.   end
  364.   local len1 = c - a:Dot(b - a.unit)
  365.   local len2 = b - a.magnitude - len1
  366.   local width = a + b - a.unit * len1 - c.magnitude
  367.   local maincf = CFrameFromTopBack(a, b - a:Cross(c - b).unit, -b - a.unit)
  368.   local list = {}
  369.   local TrailColor = "Dark grey"
  370.   if len1 > 0.01 then
  371.     local w1 = Instance.new("WedgePart", m)
  372.     game:GetService("Debris"):AddItem(w1, 5)
  373.     w1.Material = "SmoothPlastic"
  374.     w1.FormFactor = "Custom"
  375.     w1.BrickColor = BrickColor.new(TrailColor)
  376.     w1.Transparency = 0
  377.     w1.Reflectance = 0
  378.     w1.Material = "SmoothPlastic"
  379.     w1.CanCollide = false
  380.     NoOutline(w1)
  381.     local sz = Vector3.new(0.2, width, len1)
  382.     w1.Size = sz
  383.     local sp = Instance.new("SpecialMesh", w1)
  384.     sp.MeshType = "Wedge"
  385.     sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
  386.     w1:BreakJoints()
  387.     w1.Anchored = true
  388.     w1.Parent = workspace
  389.     w1.Transparency = 0.7
  390.     table.insert(Effects, {w1, "Disappear", 0.01})
  391.     w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  392.     table.insert(list, w1)
  393.   end
  394.   do
  395.     if len2 > 0.01 then
  396.       local w2 = Instance.new("WedgePart", m)
  397.       game:GetService("Debris"):AddItem(w2, 5)
  398.       w2.Material = "SmoothPlastic"
  399.       w2.FormFactor = "Custom"
  400.       w2.BrickColor = BrickColor.new(TrailColor)
  401.       w2.Transparency = 0
  402.       w2.Reflectance = 0
  403.       w2.Material = "SmoothPlastic"
  404.       w2.CanCollide = false
  405.       NoOutline(w2)
  406.       local sz = Vector3.new(0.2, width, len2)
  407.       w2.Size = sz
  408.       local sp = Instance.new("SpecialMesh", w2)
  409.       sp.MeshType = "Wedge"
  410.       sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
  411.       w2:BreakJoints()
  412.       w2.Anchored = true
  413.       w2.Parent = workspace
  414.       w2.Transparency = 0.7
  415.       table.insert(Effects, {w2, "Disappear", 0.01})
  416.       w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  417.       table.insert(list, w2)
  418.     end
  419.     do
  420.       return unpack(list)
  421.     end
  422.   end
  423. end
  424.  
  425. rayCast = function(Pos, Dir, Max, Ignore)
  426.  
  427.   return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  428. end
  429.  
  430. clerp = function(a, b, t)
  431.  
  432.   local qa = {QuaternionFromCFrame(a)}
  433.   local qb = {QuaternionFromCFrame(b)}
  434.   local ax, ay, az = a.x, a.y, a.z
  435.   local bx, by, bz = b.x, b.y, b.z
  436.   local _t = 1 - t
  437.   return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  438. end
  439.  
  440. local clerp = CFrame.new().lerp
  441. QuaternionFromCFrame = function(cf)
  442.  
  443.   local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  444.   local trace = m00 + m11 + m22
  445.   if trace > 0 then
  446.     local s = math.sqrt(1 + trace)
  447.     local recip = 0.5 / s
  448.     return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  449.   else
  450.     do
  451.       local i = 0
  452.       if m00 < m11 then
  453.         i = 1
  454.       end
  455.       if i == 0 and m00 or m11 < m22 then
  456.         i = 2
  457.       end
  458.       if i == 0 then
  459.         local s = math.sqrt(m00 - m11 - m22 + 1)
  460.         local recip = 0.5 / s
  461.         return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  462.       else
  463.         do
  464.           if i == 1 then
  465.             local s = math.sqrt(m11 - m22 - m00 + 1)
  466.             local recip = 0.5 / s
  467.             return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  468.           else
  469.             do
  470.               if i == 2 then
  471.                 local s = math.sqrt(m22 - m00 - m11 + 1)
  472.                 local recip = 0.5 / s
  473.                 return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  474.               end
  475.             end
  476.           end
  477.         end
  478.       end
  479.     end
  480.   end
  481. end
  482.  
  483. QuaternionToCFrame = function(px, py, pz, x, y, z, w)
  484.  
  485.   local xs, ys, zs = x + x, y + y, z + z
  486.   local wx, wy, wz = w * xs, w * ys, w * zs
  487.   local xx = x * xs
  488.   local xy = x * ys
  489.   local xz = x * zs
  490.   local yy = y * ys
  491.   local yz = y * zs
  492.   local zz = z * zs
  493.   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))
  494. end
  495.  
  496. QuaternionSlerp = function(a, b, t)
  497.  
  498.   local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  499.   local startInterp, finishInterp = nil, nil
  500.   if cosTheta >= 0.0001 then
  501.     if 1 - cosTheta > 0.0001 then
  502.       local theta = math.acos(cosTheta)
  503.       local invSinTheta = 1 / math.sin(theta)
  504.       startInterp = math.sin((1 - t) * theta) * invSinTheta
  505.       finishInterp = math.sin(t * theta) * invSinTheta
  506.     else
  507.       do
  508.         startInterp = 1 - t
  509.         finishInterp = t
  510.         if 1 + cosTheta > 0.0001 then
  511.           local theta = math.acos(-cosTheta)
  512.           local invSinTheta = 1 / math.sin(theta)
  513.           startInterp = math.sin((t - 1) * theta) * invSinTheta
  514.           finishInterp = math.sin(t * theta) * invSinTheta
  515.         else
  516.           do
  517.             startInterp = t - 1
  518.             finishInterp = t
  519.             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
  520.           end
  521.         end
  522.       end
  523.     end
  524.   end
  525. end
  526.  
  527. sitting = false
  528. resting = false
  529. meditating = false
  530. sprint = false
  531. local sine = 0
  532. local change = 1
  533. local val = 0
  534. local anims = coroutine.wrap(function()
  535. while true do
  536.   sine = sine + change
  537.   local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  538.     local velderp = RootPart.Velocity.y
  539.     hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  540.     if equipped == true or equipped == false then
  541.       if attack == false then
  542.         idle = idle + 1
  543.       else
  544.         idle = 0
  545.       end
  546.       if ((idle >= 500 and attack ~= false) or RootPart.Velocity.y > 1) and hitfloor == nil then
  547.         Anim = "Jump"
  548.         if attack == false then
  549.           change = 1
  550.           RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.15)
  551.           Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.15)
  552.           RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(20)), 0.15)
  553.           LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), 0.15)
  554.           RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-20), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.15)
  555.           LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-20), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.15)
  556.         end
  557.       elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  558.           Anim = "Fall"
  559.           if attack == false then
  560.             change = 1
  561.             RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.15)
  562.             Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
  563.             RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(10)), 0.15)
  564.             LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-10)), 0.15)
  565.             RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(10), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.15)
  566.             LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-10), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.15)
  567.           end
  568.         elseif torvel < 1 and hitfloor ~= nil then
  569.             Anim = "Idle"
  570.             if attack == false and sitting == false and resting == false and meditating == false then
  571.               change = 1
  572.               RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1 + 0.1 * math.cos(sine / 30)) * angles(math.rad(-2.5 * math.cos(sine / 30)), math.rad(0), math.rad(0)), 0.15)
  573.               Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5 * math.cos(sine / 30)) + -math.sin(sine / 30) / 15, math.rad(0), math.rad(0)), 0.15)
  574.               RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.55 + 0.05 * math.cos(sine / 30) + -math.sin(sine / 30) / 40, 0) * angles(math.rad(5 - 2.5 * math.cos(sine / 30)), math.rad(0), math.rad(10 + 5 * math.cos(sine / 30)) + math.sin(sine / 30) / 20), 0.15)
  575.               LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.55 + 0.05 * math.cos(sine / 30) + -math.sin(sine / 30) / 40, 0) * angles(math.rad(5 - 2.5 * math.cos(sine / 30)), math.rad(0), math.rad(-10 - 5 * math.cos(sine / 30)) + -math.sin(sine / 30) / 20), 0.15)
  576.               RH.C0 = clerp(RH.C0, cf(1, -0.9 - 0.1 * math.cos(sine / 30), 0.025 * math.cos(sine / 30)) * angles(math.rad(-2.5 * math.cos(sine / 30)), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.15)
  577.               LH.C0 = clerp(LH.C0, cf(-1, -0.9 - 0.1 * math.cos(sine / 30), 0.025 * math.cos(sine / 30)) * angles(math.rad(-2.5 * math.cos(sine / 30)), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.15)
  578.             elseif attack == false and sitting == true and resting == false and meditating == false then
  579.                 change = 1
  580.                 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.9) * angles(math.rad(-45 - 2.5 * math.cos(sine / 30)), math.rad(0), math.rad(0)), 0.15)
  581.                 Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5 * math.cos(sine / 30)) + -math.sin(sine / 30) / 15, math.rad(0), math.rad(0)), 0.15)
  582.                 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.45, 0) * angles(math.rad(-45 - 2.5 * math.cos(sine / 30)), math.rad(0), math.rad(10)), 0.15)
  583.                 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.45, 0) * angles(math.rad(-45 - 2.5 * math.cos(sine / 30)), math.rad(0), math.rad(-10)), 0.15)
  584.                 RH.C0 = clerp(RH.C0, cf(1, -1, 0.025 * math.cos(sine / 30)) * angles(math.rad(45 - 2.5 * math.cos(sine / 30)), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.15)
  585.                 LH.C0 = clerp(LH.C0, cf(-1, -1, 0.025 * math.cos(sine / 30)) * angles(math.rad(45 - 2.5 * math.cos(sine / 30)), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.15)
  586.               elseif attack == false and sitting == false and resting == true and meditating == false then
  587.                   change = 1
  588.                   RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2.3) * angles(math.rad(-80 - 1 * math.cos(sine / 30)), math.rad(0), math.rad(0)), 0.15)
  589.                   Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(5 - 1 * math.cos(sine / 30)) + -math.sin(sine / 30) / 15, math.rad(0), math.rad(0)), 0.15)
  590.                   RW.C0 = clerp(RW.C0, CFrame.new(1, 0.75, 0.1) * angles(math.rad(215 - 1 * math.cos(sine / 30)), math.rad(0), math.rad(-45)), 0.15)
  591.                   LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.75, 0.1) * angles(math.rad(200 - 1 * math.cos(sine / 30)), math.rad(0), math.rad(45)), 0.15)
  592.                   RH.C0 = clerp(RH.C0, cf(1, -1, 0.025 * math.cos(sine / 30)) * angles(math.rad(25 - 1 * math.cos(sine / 30)), math.rad(90), math.rad(0)) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  593.                   LH.C0 = clerp(LH.C0, cf(-1, -1, 0.025 * math.cos(sine / 30)) * angles(math.rad(10 - 1 * math.cos(sine / 30)), math.rad(-90), math.rad(0)) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  594.                 elseif attack == false and sitting == false and resting == false and meditating == true then
  595.                     change = 1
  596.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.9) * angles(math.rad(10 - 1 * math.cos(sine / 30)), math.rad(0), math.rad(0)), 0.15)
  597.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10 - 1 * math.cos(sine / 30)) + -math.sin(sine / 30) / 15, math.rad(0), math.rad(0)), 0.15)
  598.                     RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(0), math.rad(165), math.rad(90)), 0.15)
  599.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(0), math.rad(-165), math.rad(-90)), 0.15)
  600.                     RH.C0 = clerp(RH.C0, cf(1, -1, 0.1) * angles(math.rad(-30), math.rad(75), math.rad(0)) * angles(math.rad(80), math.rad(0), math.rad(0)), 0.15)
  601.                     LH.C0 = clerp(LH.C0, cf(-1, -1, 0.1) * angles(math.rad(-30), math.rad(-75), math.rad(0)) * angles(math.rad(80), math.rad(0), math.rad(0)), 0.15)
  602.                   end
  603.           elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then
  604.               Anim = "Walk"
  605.               if attack == false and sprint == false then
  606.                 change = 0.5
  607.                 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.175 + 0.025 * math.cos(sine / 3.5) + -math.sin(sine / 3.5) / 7) * angles(math.rad(5 - 2.5 * math.cos(sine / 3.5)), math.rad(0), math.rad(10 * math.cos(sine / 7))), 0.15)
  608.                 Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0 + 0.025 * math.cos(sine / 3.5)) * angles(math.rad(0 - 2.5 * math.cos(sine / 3.5)), math.rad(1.5 * math.cos(sine / 7)), math.rad(-7.5 * math.cos(sine / 7))), 0.15)
  609.                 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30 * math.cos(sine / 7)) + math.sin(sine / 7) / 2.5, math.rad(0), math.rad(10)), 0.15)
  610.                 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30 * math.cos(sine / 7)) + -math.sin(sine / 7) / 2.5, math.rad(0), math.rad(-10)), 0.15)
  611.                 RH.C0 = clerp(RH.C0, cf(1, -0.925 - 0.5 * math.cos(sine / 7) / 2, 0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 - 15 * math.cos(sine / 7)) + -math.sin(sine / 7) / 2.5, math.rad(90 - 10 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 + 2.5 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.15)
  612.                 LH.C0 = clerp(LH.C0, cf(-1, -0.925 + 0.5 * math.cos(sine / 7) / 2, -0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 + 15 * math.cos(sine / 7)) + math.sin(sine / 7) / 2.5, math.rad(-90 - 10 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 - 2.5 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.15)
  613.               elseif attack == false and sprint == true then
  614.                   change = 1
  615.                   RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1 + 0.1 * math.cos(sine / 3.5) + -math.sin(sine / 3.5) / 7) * angles(math.rad(5 - 2.5 * math.cos(sine / 3.5)), math.rad(0), math.rad(10 * math.cos(sine / 7))), 0.15)
  616.                   Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0 + 0.025 * math.cos(sine / 3.5)) * angles(math.rad(0 - 2.5 * math.cos(sine / 3.5)), math.rad(1.5 * math.cos(sine / 7)), math.rad(-7.5 * math.cos(sine / 7))), 0.15)
  617.                   RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(45 * math.cos(sine / 7)) + math.sin(sine / 7) / 2.5, math.rad(0), math.rad(10)), 0.15)
  618.                   LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-45 * math.cos(sine / 7)) + -math.sin(sine / 7) / 2.5, math.rad(0), math.rad(-10)), 0.15)
  619.                   RH.C0 = clerp(RH.C0, cf(1, -0.9 - 0.25 * math.cos(sine / 7) / 2, 0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 - 45 * math.cos(sine / 7)) + -math.sin(sine / 7) / 2.5, math.rad(90 - 10 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 + 2.5 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.15)
  620.                   LH.C0 = clerp(LH.C0, cf(-1, -0.9 + 0.25 * math.cos(sine / 7) / 2, -0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 + 45 * math.cos(sine / 7)) + math.sin(sine / 7) / 2.5, math.rad(-90 - 10 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 - 2.5 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.15)
  621.                 end
  622.             elseif torvel < 22 and hitfloor ~= nil then
  623.                 Anim = "Run"
  624.               end
  625.     end
  626.     if attack == false then
  627.     end
  628.     game:GetService("RunService").Stepped:Wait()
  629.   end
  630. end)
  631. --//Main\\--
  632. mus.SoundId = "http://www.roblox.com/asset?id=245104465"
  633. mus:Play()
  634. mus.Looped = true
  635. mus.Volume = .5
  636. p.CFrame = la.CFrame
  637. p1.CFrame = ll.CFrame
  638. p2.CFrame = ra.CFrame
  639. p3.CFrame = rl.CFrame
  640. p4.CFrame = la.CFrame
  641. p5.CFrame = ll.CFrame
  642. p6.CFrame = ra.CFrame
  643. p7.CFrame = rl.CFrame
  644. p8.CFrame = la.CFrame
  645. p9.CFrame = ll.CFrame
  646. p10.CFrame = ra.CFrame
  647. p11.CFrame = rl.CFrame
  648. p.Size = Vector3.new(1.1, .3, 1.1)
  649. p1.Size = Vector3.new(1.1, .3, 1.1)
  650. p2.Size = Vector3.new(1.1, .3, 1.1)
  651. p3.Size = Vector3.new(1.1, .3, 1.1)
  652. p4.Size = Vector3.new(1.1, .1, 1.1)
  653. p5.Size = Vector3.new(1.1, .1, 1.1)
  654. p6.Size = Vector3.new(1.1, .1, 1.1)
  655. p7.Size = Vector3.new(1.1, .1, 1.1)
  656. p8.Size = Vector3.new(1.1, .1, 1.1)
  657. p9.Size = Vector3.new(1.1, .1, 1.1)
  658. p10.Size = Vector3.new(1.1, .1, 1.1)
  659. p11.Size = Vector3.new(1.1, .1, 1.1)
  660. p.CanCollide = false
  661. p1.CanCollide = false
  662. p2.CanCollide = false
  663. p3.CanCollide = false
  664. p4.CanCollide = false
  665. p5.CanCollide = false
  666. p6.CanCollide = false
  667. p7.CanCollide = false
  668. p8.CanCollide = false
  669. p9.CanCollide = false
  670. p10.CanCollide = false
  671. p11.CanCollide = false
  672. w.Part0 = la
  673. w.Part1 = p
  674. w1.Part0 = ll
  675. w1.Part1 = p1
  676. w2.Part0 = ra
  677. w2.Part1 = p2
  678. w3.Part0 = rl
  679. w3.Part1 = p3
  680. w4.Part0 = la
  681. w4.Part1 = p4
  682. w5.Part0 = ll
  683. w5.Part1 = p5
  684. w6.Part0 = ra
  685. w6.Part1 = p6
  686. w7.Part0 = rl
  687. w7.Part1 = p7
  688. w8.Part0 = la
  689. w8.Part1 = p8
  690. w9.Part0 = ll
  691. w9.Part1 = p9
  692. w10.Part0 = ra
  693. w10.Part1 = p10
  694. w11.Part0 = rl
  695. w11.Part1 = p11
  696. sm.MeshType = "Brick"
  697. sm1.MeshType = "Brick"
  698. sm2.MeshType = "Brick"
  699. sm3.MeshType = "Brick"
  700. sm4.MeshType = "Brick"
  701. sm5.MeshType = "Brick"
  702. sm6.MeshType = "Brick"
  703. sm7.MeshType = "Brick"
  704. sm8.MeshType = "Brick"
  705. sm9.MeshType = "Brick"
  706. sm10.MeshType = "Brick"
  707. sm11.MeshType = "Brick"
  708. p.TopSurface = "Smooth"
  709. p.BottomSurface = "Smooth"
  710. p1.TopSurface = "Smooth"
  711. p1.BottomSurface = "Smooth"
  712. p2.TopSurface = "Smooth"
  713. p2.BottomSurface = "Smooth"
  714. p3.TopSurface = "Smooth"
  715. p3.BottomSurface = "Smooth"
  716. p4.TopSurface = "Smooth"
  717. p4.BottomSurface = "Smooth"
  718. p5.TopSurface = "Smooth"
  719. p5.BottomSurface = "Smooth"
  720. p6.TopSurface = "Smooth"
  721. p6.BottomSurface = "Smooth"
  722. p7.TopSurface = "Smooth"
  723. p7.BottomSurface = "Smooth"
  724. p8.TopSurface = "Smooth"
  725. p8.BottomSurface = "Smooth"
  726. p9.TopSurface = "Smooth"
  727. p9.BottomSurface = "Smooth"
  728. p10.TopSurface = "Smooth"
  729. p10.BottomSurface = "Smooth"
  730. p11.TopSurface = "Smooth"
  731. p11.BottomSurface = "Smooth"
  732. p.Material = Enum.Material.Neon
  733. p1.Material = Enum.Material.Neon
  734. p2.Material = Enum.Material.Neon
  735. p3.Material = Enum.Material.Neon
  736. p4.Material = Enum.Material.SmoothPlastic
  737. p5.Material = Enum.Material.SmoothPlastic
  738. p6.Material = Enum.Material.SmoothPlastic
  739. p7.Material = Enum.Material.SmoothPlastic
  740. p8.Material = Enum.Material.SmoothPlastic
  741. p9.Material = Enum.Material.SmoothPlastic
  742. p10.Material = Enum.Material.SmoothPlastic
  743. p11.Material = Enum.Material.SmoothPlastic
  744. p4.Color = Color3.fromRGB(30,30,30)
  745. p5.Color = Color3.fromRGB(30,30,30)
  746. p6.Color = Color3.fromRGB(30,30,30)
  747. p7.Color = Color3.fromRGB(30,30,30)
  748. p8.Color = Color3.fromRGB(30,30,30)
  749. p9.Color = Color3.fromRGB(30,30,30)
  750. p10.Color = Color3.fromRGB(30,30,30)
  751. p11.Color = Color3.fromRGB(30,30,30)
  752. sm.Offset = Vector3.new(0, -.4, 0)
  753. sm1.Offset = Vector3.new(0, -.4, 0)
  754. sm2.Offset = Vector3.new(0, -.4, 0)
  755. sm3.Offset = Vector3.new(0, -.4, 0)
  756. sm4.Offset = Vector3.new(0, -.2, 0)
  757. sm5.Offset = Vector3.new(0, -.6, 0)
  758. sm6.Offset = Vector3.new(0, -.6, 0)
  759. sm7.Offset = Vector3.new(0, -.6, 0)
  760. sm8.Offset = Vector3.new(0, -.6, 0)
  761. sm9.Offset = Vector3.new(0, -.2, 0)
  762. sm10.Offset = Vector3.new(0, -.2, 0)
  763. sm11.Offset = Vector3.new(0, -.2, 0)
  764. plr = game.Players.LocalPlayer
  765. mouse = plr:GetMouse()
  766. function onClicked()
  767. local q = Instance.new("Sound", x)
  768. local s = Instance.new("Explosion", workspace)
  769. local x = Instance.new("Part", workspace)
  770. local m = Instance.new("SpecialMesh", x)
  771. q:Play()
  772. q.SoundId = "http://www.roblox.com/asset?id=142070127"
  773. q.Volume = 3
  774. s.Position = mouse.Hit.p
  775. s.BlastRadius = 30
  776. s.BlastPressure = 500000   
  777. x.Position = mouse.Hit.p
  778. x.TopSurface = "Smooth"
  779. x.BottomSurface = "Smooth"
  780. x.Name = "Boom"
  781. x.Anchored = true
  782. x.Size = Vector3.new(.1,.1,.1)
  783. x.BrickColor = BrickColor.Random()
  784. x.Transparency = .3
  785. x.CanCollide = false
  786. x.Material = Enum.Material.Neon
  787. m.MeshType = "Sphere"
  788. x.Touched:connect(dmg)
  789. x.Touched:connect(dmg1)
  790. wait(.1)
  791. x.BrickColor = BrickColor.Random()
  792. x.Size = Vector3.new(15,15,15)
  793. wait(.1)
  794. x.BrickColor = BrickColor.Random()
  795. x.Size = Vector3.new(16,16,16)
  796. wait(.1)
  797. x.BrickColor = BrickColor.Random()
  798. x.Size = Vector3.new(17,17,17)
  799. wait(.1)
  800. x.BrickColor = BrickColor.Random()
  801. x.Size = Vector3.new(18,18,18)
  802. wait(.1)
  803. x.BrickColor = BrickColor.Random()
  804. x.Size = Vector3.new(19,19,19)
  805. wait(.1)
  806. x.BrickColor = BrickColor.Random()
  807. x.Size = Vector3.new(20,20,20)
  808. wait(.1)
  809. x:Destroy()
  810. end
  811. function dmg(hit)
  812.     if hit.Parent ~= nil then
  813.         local hd = hit.Parent:findFirstChild("Head")
  814.         if hd ~= nil then
  815.             hd:Destroy()
  816.         end
  817.     end
  818. end
  819. function dmg1(hit)
  820.     if hit.Parent ~= nil then
  821.         local trs = hit.Parent:findFirstChild("Torso")
  822.         if trs ~= nil then
  823.             trs:Destroy()
  824.         end
  825.     end
  826. end
  827. mouse.KeyDown:connect(function(k)
  828.   k = k:lower()
  829.   if k == "z" and attack == false and resting == false and sprint == false and meditating == false then
  830.     attack = true
  831.     if sitting == false then
  832.       sitting = true
  833.       Humanoid.WalkSpeed = 0
  834.       for i = 0, 1, 0.04 do
  835.         fat.Event:wait()
  836.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.25) * angles(math.rad(0), math.rad(15), math.rad(0)), 0.15)
  837.         Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.15)
  838.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.15)
  839.         LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(15), math.rad(0), math.rad(-25)), 0.15)
  840.         RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-60), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.15)
  841.         LH.C0 = clerp(LH.C0, cf(-0.75, 0.25, -1) * angles(math.rad(-15), math.rad(-90), math.rad(0)) * angles(math.rad(-15), math.rad(0), math.rad(0)), 0.15)
  842.       end
  843.     elseif sitting == true then
  844.           sitting = false
  845.           for i = 0, 1, 0.04 do
  846.             fat.Event:wait()
  847.             RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.25) * angles(math.rad(0), math.rad(15), math.rad(0)), 0.15)
  848.             Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.15)
  849.             RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.15)
  850.             LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(15), math.rad(0), math.rad(-25)), 0.15)
  851.             RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-60), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.15)
  852.             LH.C0 = clerp(LH.C0, cf(-0.75, 0.25, -1) * angles(math.rad(-15), math.rad(-90), math.rad(0)) * angles(math.rad(-15), math.rad(0), math.rad(0)), 0.15)
  853.           end
  854.           Humanoid.WalkSpeed = 3
  855.         end
  856.         attack = false
  857. end
  858.         if k == "x" and attack == false and sitting == false and sprint == false and meditating == false then
  859.           attack = true
  860.           if resting == false then
  861.             resting = true
  862.             Humanoid.WalkSpeed = 0
  863.             for i = 0, 1, 0.04 do
  864.               fat.Event:wait()
  865.               RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.05) * angles(math.rad(0), math.rad(15), math.rad(0)), 0.15)
  866.               Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.15)
  867.               RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.15)
  868.               LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.1, 0) * angles(math.rad(15), math.rad(0), math.rad(-25)), 0.15)
  869.               RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-40), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.15)
  870.               LH.C0 = clerp(LH.C0, cf(-0.75, 0.05, -1) * angles(math.rad(-15), math.rad(-90), math.rad(0)) * angles(math.rad(-15), math.rad(0), math.rad(0)), 0.15)
  871.             end
  872.           elseif resting == true then
  873.                 resting = false
  874.                 for i = 0, 1, 0.04 do
  875.                   fat.Event:wait()
  876.                   RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.05) * angles(math.rad(0), math.rad(15), math.rad(0)), 0.15)
  877.                   Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.15)
  878.                   RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.15)
  879.                   LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.1, 0) * angles(math.rad(15), math.rad(0), math.rad(-25)), 0.15)
  880.                   RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-40), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.15)
  881.                   LH.C0 = clerp(LH.C0, cf(-0.75, 0.05, -1) * angles(math.rad(-15), math.rad(-90), math.rad(0)) * angles(math.rad(-15), math.rad(0), math.rad(0)), 0.15)
  882.                 end
  883.                 Humanoid.WalkSpeed = 3
  884.               end
  885.               attack = false
  886. end
  887.               if k == "c" and attack == false and sitting == false and resting == false and sprint == false then
  888.                 attack = true
  889.                 if meditating == false then
  890.                   meditating = true
  891.                   Humanoid.WalkSpeed = 0
  892.                   for i = 0, 1, 0.04 do
  893.                     fat.Event:wait()
  894.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.05) * angles(math.rad(0), math.rad(15), math.rad(0)), 0.15)
  895.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.15)
  896.                     RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.15)
  897.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.1, 0) * angles(math.rad(15), math.rad(0), math.rad(-25)), 0.15)
  898.                     RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-40), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.15)
  899.                     LH.C0 = clerp(LH.C0, cf(-0.75, 0.05, -1) * angles(math.rad(-15), math.rad(-90), math.rad(0)) * angles(math.rad(-15), math.rad(0), math.rad(0)), 0.15)
  900.                   end
  901.                 elseif meditating == true then
  902.                       meditating = false
  903.                       for i = 0, 1, 0.04 do
  904.                         fat.Event:wait()
  905.                         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.05) * angles(math.rad(0), math.rad(15), math.rad(0)), 0.15)
  906.                         Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.15)
  907.                         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.15)
  908.                         LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.1, 0) * angles(math.rad(15), math.rad(0), math.rad(-25)), 0.15)
  909.                         RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-40), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.15)
  910.                         LH.C0 = clerp(LH.C0, cf(-0.75, 0.05, -1) * angles(math.rad(-15), math.rad(-90), math.rad(0)) * angles(math.rad(-15), math.rad(0), math.rad(0)), 0.15)
  911.                       end
  912.                       Humanoid.WalkSpeed = 3
  913.                     end
  914.                     attack = false
  915. end
  916.                     if k == "e" and attack == false and resting == false and sitting == false and meditating == false and sprint == false then
  917.                       sprint = true
  918.                       Humanoid.WalkSpeed = 16
  919.                     end
  920.                   end
  921. )
  922. mouse.KeyUp:connect(function(k)
  923.  
  924.   if k == "e" and attack == false and resting == false and sitting == false and meditating == false and sprint == true then
  925.     sprint = false
  926.     Humanoid.WalkSpeed = 3
  927.   end
  928. end)
  929. mouse.Button1Down:connect(function()
  930. onClicked()
  931. end)
  932. local naeeym2 = Instance.new("BillboardGui",char)
  933. naeeym2.AlwaysOnTop = true
  934. naeeym2.Size = UDim2.new(5,35,2,15)
  935. naeeym2.StudsOffset = Vector3.new(0,2,0)
  936. naeeym2.MaxDistance = 75
  937. naeeym2.Adornee = head
  938. naeeym2.Name = "Name"
  939. local tecks2 = Instance.new("TextLabel",naeeym2)
  940. tecks2.BackgroundTransparency = 1
  941. tecks2.TextScaled = true
  942. tecks2.BorderSizePixel = 0
  943. tecks2.Text = char.Name.." The party breaker"
  944. tecks2.Font = "Arcade"
  945. tecks2.TextSize = 30
  946. tecks2.TextStrokeTransparency = 0
  947. tecks2.TextColor3 = Color3.new(1,1,1)
  948. tecks2.TextStrokeColor3 = Color3.fromRGB(100,0,255)
  949. tecks2.Size = UDim2.new(1,0,0.5,0)
  950. tecks2.Parent = naeeym2
  951. la.Touched:connect(dmg)
  952. ll.Touched:connect(dmg)
  953. ra.Touched:connect(dmg)
  954. rl.Touched:connect(dmg)
  955. tos.Touched:connect(dmg)
  956. head.Touched:connect(dmg)
  957. la.Touched:connect(dmg1)
  958. ll.Touched:connect(dmg1)
  959. ra.Touched:connect(dmg1)
  960. rl.Touched:connect(dmg1)
  961. tos.Touched:connect(dmg1)
  962. head.Touched:connect(dmg1)
  963. anims()
  964. while wait(.01) do
  965.     p.BrickColor = BrickColor.Random()
  966.     p1.BrickColor = BrickColor.Random()
  967.     p2.BrickColor = BrickColor.Random()
  968.     p3.BrickColor = BrickColor.Random()
  969. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement