Advertisement
idkwhatiam

go away fatty this is mine hashahs

Jun 7th, 2019
537
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 51.17 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.     warn("Windows Fighter by youngmacka123")
  6.     local rp = RealPlayer
  7.     script.Parent = rp.Character
  8.    
  9.     --RemoteEvent for communicating
  10.     local Event = Instance.new("RemoteEvent")
  11.     Event.Name = "UserInput_Event"
  12.  
  13.     --Fake event to make stuff like Mouse.KeyDown work
  14.     local function fakeEvent()
  15.         local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16.         t.connect = t.Connect
  17.         return t
  18.     end
  19.  
  20.     --Creating fake input objects with fake variables
  21.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25.     end}
  26.     --Merged 2 functions into one by checking amount of arguments
  27.     CAS.UnbindAction = CAS.BindAction
  28.  
  29.     --This function will trigger the events that have been :Connect()'ed
  30.     local function te(self,ev,...)
  31.         local t = m[ev]
  32.         if t and t._fakeEvent then
  33.             for _,f in pairs(t.Functions) do
  34.                 f(...)
  35.             end
  36.         end
  37.     end
  38.     m.TrigEvent = te
  39.     UIS.TrigEvent = te
  40.  
  41.     Event.OnServerEvent:Connect(function(plr,io)
  42.         if plr~=rp then return end
  43.         m.Target = io.Target
  44.         m.Hit = io.Hit
  45.         if not io.isMouse then
  46.             local b = io.UserInputState == Enum.UserInputState.Begin
  47.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49.             end
  50.             for _,t in pairs(CAS.Actions) do
  51.                 for _,k in pairs(t.Keys) do
  52.                     if k==io.KeyCode then
  53.                         t.Function(t.Name,io.UserInputState,io)
  54.                     end
  55.                 end
  56.             end
  57.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59.         end
  60.     end)
  61.     Event.Parent = NLS([==[
  62.     local Player = game:GetService("Players").LocalPlayer
  63.     local Event = script:WaitForChild("UserInput_Event")
  64.  
  65.     local Mouse = Player:GetMouse()
  66.     local UIS = game:GetService("UserInputService")
  67.     local input = function(io,a)
  68.         if a then return end
  69.         --Since InputObject is a client-side instance, we create and pass table instead
  70.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71.     end
  72.     UIS.InputBegan:Connect(input)
  73.     UIS.InputEnded:Connect(input)
  74.  
  75.     local h,t
  76.     --Give the server mouse data 30 times every second, but only if the values changed
  77.     --If player is not moving their mouse, client won't fire events
  78.     while wait(1/30) do
  79.         if h~=Mouse.Hit or t~=Mouse.Target then
  80.             h,t=Mouse.Hit,Mouse.Target
  81.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  82.         end
  83.     end]==],Player.Character)
  84.  
  85.     ----Sandboxed game object that allows the usage of client-side methods and services
  86.     --Real game object
  87.     local _rg = game
  88.  
  89.     --Metatable for fake service
  90.     local fsmt = {
  91.         __index = function(self,k)
  92.             local s = rawget(self,"_RealService")
  93.             if s then return s[k] end
  94.         end,
  95.         __newindex = function(self,k,v)
  96.             local s = rawget(self,"_RealService")
  97.             if s then s[k]=v end
  98.         end,
  99.         __call = function(self,...)
  100.             local s = rawget(self,"_RealService")
  101.             if s then return s(...) end
  102.         end
  103.     }
  104.     local function FakeService(t,RealService)
  105.         t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106.         return setmetatable(t,fsmt)
  107.     end
  108.  
  109.     --Fake game object
  110.     local g = {
  111.         GetService = function(self,s)
  112.             return self[s]
  113.         end,
  114.         Players = FakeService({
  115.             LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116.         },"Players"),
  117.         UserInputService = FakeService(UIS,"UserInputService"),
  118.         ContextActionService = FakeService(CAS,"ContextActionService"),
  119.     }
  120.     rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121.     g.service = g.GetService
  122.    
  123.     g.RunService = FakeService({
  124.         RenderStepped = _rg:GetService("RunService").Heartbeat,
  125.         BindToRenderStep = function(self,name,_,fun)
  126.  
  127.         end,
  128.         UnbindFromRenderStep = function(self,name)
  129.             self._btrs[name]:Disconnect()
  130.         end,
  131.     },"RunService")
  132.  
  133.     setmetatable(g,{
  134.         __index=function(self,s)
  135.             return _rg:GetService(s) or typeof(_rg[s])=="function"
  136.             and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137.         end,
  138.         __newindex = fsmt.__newindex,
  139.         __call = fsmt.__call
  140.     })
  141.     --Changing owner to fake player object to support owner:GetMouse()
  142.     game,owner = g,g.Players.LocalPlayer
  143. end
  144.  
  145. local cansilence = true
  146.  
  147. function SHUTUPXDD()
  148.     if cansilence then
  149.         cansilence = false
  150.         local function search(instance)
  151.             for i,v in pairs(instance:GetChildren()) do
  152.                 search(v)
  153.                 if v.ClassName == "Sound" then
  154.                     if v.Parent ~= game.Players.LocalPlayer.Character then
  155.                         v.Volume = 0
  156.                     end
  157.                 end
  158.             end
  159.         end
  160.         search(workspace)
  161.         wait(3)
  162.         cansilence = false
  163.     end
  164. end
  165.  
  166. game:GetService("RunService").RenderStepped:connect(SHUTUPXDD)
  167.  
  168. Player_Size = 1 --Size of the player.
  169.  
  170. wait()
  171. local Player = owner
  172. local Character = Player.Character
  173. local plr = owner
  174. local Humanoid = Character.Humanoid
  175. local char = plr.Character
  176. local hum = char.Humanoid
  177. local ra = char["Right Arm"]
  178. local la= char["Left Arm"]
  179. local rl= char["Right Leg"]
  180. local ll = char["Left Leg"]
  181. local hed = char.Head
  182. local root = char.HumanoidRootPart
  183. local rootj = root.RootJoint
  184. local tors = char.Torso
  185. local LeftArm = Character["Left Arm"]
  186. local RightArm = Character["Right Arm"]
  187. local LeftLeg = Character["Left Leg"]
  188. local RightLeg = Character["Right Leg"]
  189. local Head = Character.Head
  190. local Torso = Character.Torso
  191. local mouse = plr:GetMouse()
  192. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  193. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  194. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  195. local cam = game.Workspace.CurrentCamera
  196. trazx = Instance.new("ParticleEmitter")
  197. c = game.Players.LocalPlayer.Character
  198. local sine=0
  199. Character.Head.face.Texture = "rbxassetid://1399284080"
  200.  
  201. hum.MaxHealth = "Inf"
  202. hum.Health = "Inf"
  203.  
  204. local forcefield = Instance.new("ForceField",char)
  205. forcefield.Name = "feaqurmam"
  206. forcefield.Visible = false
  207.  
  208. Head.BrickColor = BrickColor.new("Bright yellow")
  209. RightArm.BrickColor = BrickColor.new("Bright yellow")
  210. LeftArm.BrickColor = BrickColor.new("Bright yellow")
  211. Torso.BrickColor = BrickColor.new("Really blue")
  212. RightLeg.BrickColor = BrickColor.new("Grey")
  213. LeftLeg.BrickColor = BrickColor.new("Grey")
  214.  
  215. for i,v in pairs(Character:children()) do
  216.     if v:IsA("Hat") then
  217.         v:Destroy()
  218.     end
  219. end
  220. for i,v in pairs(Character:children()) do
  221.     if v:IsA("Accessory") then
  222.         v:Destroy()
  223.     end
  224. end
  225. for i,v in pairs(Character:children()) do
  226.     if v:IsA("Hair") then
  227.         v:Destroy()
  228.     end
  229. end
  230. for i,v in pairs(Character:children()) do
  231.     if v:IsA("Shirt") then
  232.         v:Destroy()
  233.     end
  234. end
  235. for i,v in pairs(Character:children()) do
  236.     if v:IsA("Pants") then
  237.         v:Destroy()
  238.     end
  239. end
  240. for i,v in pairs(Character:children()) do
  241.     if v:IsA("Graphic Shirt") then
  242.         v:Destroy()
  243.     end
  244. end
  245. for i,v in pairs(Character:children()) do
  246.     if v:IsA("GraphicShirt") then
  247.         v:Destroy()
  248.     end
  249. end
  250.  
  251. for _,v in pairs(Character:children()) do
  252. if v:IsA("Shirt") then
  253. v.ShirtTemplate = "rbxassetid://0"
  254. elseif v:IsA("Pants") then
  255. v.PantsTemplate = "rbxassetid://0"
  256. elseif v:IsA("ShirtGraphic") then
  257. v:Remove()
  258. wait(.1)
  259. Torso.roblox:Remove()
  260. elseif v:IsA("Accessory") then
  261. v:Remove()
  262. end
  263. end
  264.  
  265. lul = Instance.new("Sound", tors) --le musice
  266. lul.Pitch = 1
  267.  
  268. local mu = math.random(1,3)
  269. if mu == 1 then
  270.     lul.SoundId = "rbxassetid://705243700"
  271. end
  272. if mu == 2 then
  273.     lul.SoundId = "rbxassetid://154450901"
  274. end
  275. if mu == 3 then
  276.     lul.SoundId = "rbxassetid://290882232"
  277. end
  278.  
  279. lul:Play()
  280. lul.Looped = true
  281. lul.Volume = 10
  282.  
  283. -------------------------------------------------------
  284. CF = CFrame.new
  285. angles = CFrame.Angles
  286. attack = false
  287. timetofly = true
  288. Euler = CFrame.fromEulerAnglesXYZ
  289. Rad = math.rad
  290. IT = Instance.new
  291. BrickC = BrickColor.new
  292. Cos = math.cos
  293. Acos = math.acos
  294. Sin = math.sin
  295. Asin = math.asin
  296. Abs = math.abs
  297. Mrandom = math.random
  298. Floor = math.floor
  299. random = math.random
  300. radian = math.rad
  301. Vec3 = Vector3.new
  302. cFrame = CFrame.new
  303. Euler = CFrame.fromEulerAnglesXYZ
  304. -------------------------------------------------------
  305.  
  306. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  307. RSH, LSH = nil, nil
  308. RW = Instance.new("Weld")
  309. LW = Instance.new("Weld")
  310. RH = tors["Right Hip"]
  311. LH = tors["Left Hip"]
  312. RSH = tors["Right Shoulder"]
  313. LSH = tors["Left Shoulder"]
  314. RSH.Parent = nil
  315. LSH.Parent = nil
  316. RW.Name = "RW"
  317. RW.Part0 = tors
  318. RW.C0 = CF(1.5, 0.5, 0)
  319. RW.C1 = CF(0, 0.5, 0)
  320. RW.Part1 = ra
  321. RW.Parent = tors
  322. LW.Name = "LW"
  323. LW.Part0 = tors
  324. LW.C0 = CF(-1.5, 0.5, 0)
  325. LW.C1 = CF(0, 0.5, 0)
  326. LW.Part1 = la
  327. LW.Parent = tors
  328. Effects = {}
  329.  
  330. local txt = Instance.new("BillboardGui", char)
  331. txt.Adornee = char.Head
  332. txt.Name = "WINDOWSXPFORPRESIDENT"
  333. txt.Size = UDim2.new(2, 0, 1.2, 0)
  334. txt.StudsOffset = Vector3.new(-9, 8, 0)
  335. local text = Instance.new("TextLabel", txt)
  336. text.Size = UDim2.new(10, 0, 7, 0)
  337. text.FontSize = "Size24"
  338. text.TextScaled = true
  339. text.TextTransparency = 0
  340. text.BackgroundTransparency = 1
  341. text.TextTransparency = 0
  342. text.TextStrokeTransparency = 1
  343. text.Font = "Arcade"
  344. text.TextStrokeColor3 = Color3.new(0, 0, 0)
  345. v = Instance.new("Part")
  346. v.Name = "ColorBrick"
  347. v.Parent = Player.Character
  348. v.FormFactor = "Symmetric"
  349. v.Anchored = true
  350. v.CanCollide = false
  351. v.BottomSurface = "Smooth"
  352. v.TopSurface = "Smooth"
  353. v.Size = Vector3.new(10, 5, 3)
  354. v.Transparency = 1
  355. v.CFrame = char.Torso.CFrame
  356. v.BrickColor = BrickColor.new("Really black")
  357. v.Transparency = 1
  358. v.Shape = "Block"
  359. spawn(function()
  360. local TweenService = game:GetService("TweenService")
  361. local Colours = {Color3.fromRGB(0,0,255),Color3.fromRGB(0,0,0),Color3.fromRGB(0,0,255),Color3.fromRGB(0,0,0),Color3.fromRGB(0,0,255)}
  362. local Int = 0
  363. while wait(0.5) do
  364.     if Int == #Colours then Int = 0 end
  365.     Int = Int+1
  366.     TweenService:Create(text,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play()
  367. end
  368. end)
  369. text.Text = "Windows fighter"
  370.  
  371. attack = false
  372.  
  373. function SoulSteal(dude)
  374. if dude.Name ~= char then
  375. local bgf = IT("BodyGyro", dude.Head)
  376. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  377. local val = IT("BoolValue", dude)
  378. val.Name = "IsHit"
  379. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  380. local soulst = coroutine.wrap(function()
  381. local soul = Instance.new("Part",dude)
  382. soul.Size = Vector3.new(1,1,1)
  383. soul.CanCollide = false
  384. soul.Anchored = false
  385. soul.Position = torso.Position
  386. soul.Transparency = 1
  387. local PartEmmit1 = IT("ParticleEmitter", soul)
  388. PartEmmit1.LightEmission = 1
  389. PartEmmit1.Texture = "rbxassetid://569507414"
  390. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  391. PartEmmit1.Rate = 250
  392. PartEmmit1.Lifetime = NumberRange.new(1.6)
  393. PartEmmit1.Size = NumberSequence.new({
  394.     NumberSequenceKeypoint.new(0, 1, 0),
  395.     NumberSequenceKeypoint.new(1, 0, 0)
  396. })
  397. PartEmmit1.Transparency = NumberSequence.new({
  398.     NumberSequenceKeypoint.new(0, 0, 0),
  399.     NumberSequenceKeypoint.new(1, 1, 0)
  400. })
  401. PartEmmit1.Speed = NumberRange.new(0, 0)
  402. PartEmmit1.VelocitySpread = 30000
  403. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  404. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  405. local BodPoss = IT("BodyPosition", soul)
  406. BodPoss.P = 3000
  407. BodPoss.D = 1000
  408. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  409. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  410. wait(1.6)
  411. soul.Touched:connect(function(hit)
  412.     if hit.Parent == char then
  413.     soul:Destroy()
  414.     end
  415. end)
  416. wait(1.2)
  417. while soul do
  418.     swait()
  419.     PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  420.     BodPoss.Position = tors.Position
  421. end
  422. end)
  423.     soulst()
  424.     end
  425. end
  426. function FaceMouse()
  427. local   Cam = workspace.CurrentCamera
  428.     return {
  429.         CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  430.         Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  431.     }
  432. end
  433.  
  434. function Eviscerate(dude)
  435.     if dude.Name ~= char then
  436.         local bgf = IT("BodyGyro", dude.Head)
  437.         bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  438.         local val = IT("BoolValue", dude)
  439.         val.Name = "IsHit"
  440.         local ds = coroutine.wrap(function()
  441.             dude:WaitForChild("Head"):BreakJoints()
  442.             wait(0.5)
  443.             target = nil
  444.             coroutine.resume(coroutine.create(function()
  445.                 for i, v in pairs(dude:GetChildren()) do
  446.                     if v:IsA("Accessory") then
  447.                         v:Destroy()
  448.                     end
  449.                     if v:IsA("Humanoid") then
  450.                         v:Destroy()
  451.                     end
  452.                     if v:IsA("CharacterMesh") then
  453.                         v:Destroy()
  454.                     end
  455.                     if v:IsA("Model") then
  456.                         v:Destroy()
  457.                     end
  458.                     if v:IsA("Part") or v:IsA("MeshPart") then
  459.                         for x, o in pairs(v:GetChildren()) do
  460.                             if o:IsA("Decal") then
  461.                                 o:Destroy()
  462.                             end
  463.                         end
  464.                         coroutine.resume(coroutine.create(function()
  465.                             v.Material = "Neon"
  466.                             v.CanCollide = false
  467.                             local PartEmmit1 = IT("ParticleEmitter", v)
  468.                             PartEmmit1.LightEmission = 1
  469.                             PartEmmit1.Texture = "rbxassetid://284205403"
  470.                             PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  471.                             PartEmmit1.Rate = 150
  472.                             PartEmmit1.Lifetime = NumberRange.new(1)
  473.                             PartEmmit1.Size = NumberSequence.new({
  474.                                 NumberSequenceKeypoint.new(0, 0.75, 0),
  475.                                 NumberSequenceKeypoint.new(1, 0, 0)
  476.                             })
  477.                             PartEmmit1.Transparency = NumberSequence.new({
  478.                                 NumberSequenceKeypoint.new(0, 0, 0),
  479.                                 NumberSequenceKeypoint.new(1, 1, 0)
  480.                             })
  481.                             PartEmmit1.Speed = NumberRange.new(0, 0)
  482.                             PartEmmit1.VelocitySpread = 30000
  483.                             PartEmmit1.Rotation = NumberRange.new(-500, 500)
  484.                             PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  485.                             local BodPoss = IT("BodyPosition", v)
  486.                             BodPoss.P = 3000
  487.                             BodPoss.D = 1000
  488.                             BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  489.                             BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  490.                             v.Color = maincolor.Color
  491.                             coroutine.resume(coroutine.create(function()
  492.                                 for i = 0, 49 do
  493.                                     swait(1)
  494.                                     v.Transparency = v.Transparency + 0.08
  495.                                 end
  496.                                 wait(0.5)
  497.                                 PartEmmit1.Enabled = false
  498.                                 wait(3)
  499.                                 v:Destroy()
  500.                                 dude:Destroy()
  501.                             end))
  502.                         end))
  503.                     end
  504.                 end
  505.             end))
  506.         end)
  507.         ds()
  508.     end
  509. end
  510.  
  511. function ragdoll(model)
  512.     local char = model
  513.     torso = char.HumanoidRootPart
  514.     torso2 = char.Torso
  515.     LW.Parent = nil
  516.     RW.Parent = nil
  517.     LH.Parent = nil
  518.     RH.Parent = nil
  519.         if hum ~= nil then
  520.         hum.PlatformStand = true
  521.         end
  522.  
  523.         local Head = char:FindFirstChild("Head")
  524.         if Head then
  525.             local Neck = Instance.new("Weld")
  526.             Neck.Name = "Neck"
  527.             Neck.Part0 = torso
  528.             Neck.Part1 = Head
  529.             Neck.C0 = CFrame.new(0, 1.5, 0)
  530.             Neck.C1 = CFrame.new()
  531.             Neck.Parent = torso
  532.         end
  533.         local Limb = char:FindFirstChild("Right Arm")
  534.         if Limb then
  535.  
  536.             Limb.CFrame = torso.CFrame * CFrame.new(1.5, 0, 0)
  537.             local Joint = Instance.new("Glue")
  538.             Joint.Name = "RightShoulder"
  539.             Joint.Part0 = torso
  540.             Joint.Part1 = Limb
  541.             Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  542.             Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  543.             Joint.Parent = torso
  544.  
  545.             local B = Instance.new("Part")
  546.             B.TopSurface = 0
  547.             B.BottomSurface = 0
  548.             B.formFactor = "Symmetric"
  549.             B.Size = Vector3.new(1, 1, 1)
  550.             B.Transparency = 1
  551.             B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  552.             B.Parent = char
  553.             local W = Instance.new("Weld")
  554.             W.Part0 = Limb
  555.             W.Part1 = B
  556.             W.C0 = CFrame.new(0, -0.5, 0)
  557.             W.Parent = Limb
  558.  
  559.         end
  560.         local Limb = char:FindFirstChild("Left Arm")
  561.         if Limb then
  562.  
  563.             Limb.CFrame = torso.CFrame * CFrame.new(-1.5, 0, 0)
  564.             local Joint = Instance.new("Glue")
  565.             Joint.Name = "LeftShoulder"
  566.             Joint.Part0 = torso
  567.             Joint.Part1 = Limb
  568.             Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  569.             Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  570.             Joint.Parent = torso
  571.  
  572.             local B = Instance.new("Part")
  573.             B.TopSurface = 0
  574.             B.BottomSurface = 0
  575.             B.formFactor = "Symmetric"
  576.             B.Size = Vector3.new(1, 1, 1)
  577.             B.Transparency = 1
  578.             B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  579.             B.Parent = char
  580.             local W = Instance.new("Weld")
  581.             W.Part0 = Limb
  582.             W.Part1 = B
  583.             W.C0 = CFrame.new(0, -0.5, 0)
  584.             W.Parent = Limb
  585.  
  586.         end
  587.         local Limb = char:FindFirstChild("Right Leg")
  588.         if Limb then
  589.  
  590.             Limb.CFrame = torso.CFrame * CFrame.new(0.5, -2, 0)
  591.             local Joint = Instance.new("Glue")
  592.             Joint.Name = "RightHip"
  593.             Joint.Part0 = torso
  594.             Joint.Part1 = Limb
  595.             Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  596.             Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  597.             Joint.Parent = torso
  598.  
  599.             local B = Instance.new("Part")
  600.             B.TopSurface = 0
  601.             B.BottomSurface = 0
  602.             B.formFactor = "Symmetric"
  603.             B.Size = Vector3.new(1, 1, 1)
  604.             B.Transparency = 1
  605.             B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  606.             B.Parent = char
  607.             local W = Instance.new("Weld")
  608.             W.Part0 = Limb
  609.             W.Part1 = B
  610.             W.C0 = CFrame.new(0, -0.5, 0)
  611.             W.Parent = Limb
  612.  
  613.         end
  614.         local Limb = char:FindFirstChild("Left Leg")
  615.         if Limb then
  616.  
  617.             Limb.CFrame = torso.CFrame * CFrame.new(-0.5, -2, 0)
  618.             local Joint = Instance.new("Glue")
  619.             Joint.Name = "LeftHip"
  620.             Joint.Part0 = torso
  621.             Joint.Part1 = Limb
  622.             Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  623.             Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  624.             Joint.Parent = torso
  625.  
  626.             local B = Instance.new("Part")
  627.             B.TopSurface = 0
  628.             B.BottomSurface = 0
  629.             B.formFactor = "Symmetric"
  630.             B.Size = Vector3.new(1, 1, 1)
  631.             B.Transparency = 1
  632.             B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  633.             B.Parent = char
  634.             local W = Instance.new("Weld")
  635.             W.Part0 = Limb
  636.             W.Part1 = B
  637.             W.C0 = CFrame.new(0, -0.5, 0)
  638.             W.Parent = Limb
  639.  
  640.         end
  641.         --[
  642.         local Bar = Instance.new("Part")
  643.         Bar.TopSurface = 0
  644.         Bar.BottomSurface = 0
  645.         Bar.formFactor = "Symmetric"
  646.         Bar.Size = Vector3.new(1, 1, 1)
  647.         Bar.Transparency = 1
  648.         Bar.CFrame = torso.CFrame * CFrame.new(0, 0.5, 0)
  649.         Bar.Parent = char
  650.         local Weld = Instance.new("Weld")
  651.         Weld.Part0 = torso
  652.         Weld.Part1 = Bar
  653.         Weld.C0 = CFrame.new(0, 0.5, 0)
  654.         Weld.Parent = torso
  655.         --]]
  656.  
  657. torso.CFrame = CFrame.new(torso.Position)*CFrame.Angles(math.rad(20),math.rad(torso.Orientation.Y),math.rad(torso.Orientation.Z))
  658.  
  659. end
  660.  
  661. --important--
  662.  
  663. function swait(num)
  664.     if num == 0 or num == nil then
  665.         game:service("RunService").Stepped:wait(0)
  666.     else
  667.         for i = 0, num do
  668.             game:service("RunService").Stepped:wait(0)
  669.         end
  670.     end
  671. end
  672. function thread(f)
  673.     coroutine.resume(coroutine.create(f))
  674. end
  675. function clerp(a, b, t)
  676.     local qa = {
  677.         QuaternionFromCFrame(a)
  678.     }
  679.     local qb = {
  680.         QuaternionFromCFrame(b)
  681.     }
  682.     local ax, ay, az = a.x, a.y, a.z
  683.     local bx, by, bz = b.x, b.y, b.z
  684.     local _t = 1 - t
  685.     return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  686. end
  687. function QuaternionFromCFrame(cf)
  688.     local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  689.     local trace = m00 + m11 + m22
  690.     if trace > 0 then
  691.         local s = math.sqrt(1 + trace)
  692.         local recip = 0.5 / s
  693.         return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  694.     else
  695.         local i = 0
  696.         if m00 < m11 then
  697.             i = 1
  698.         end
  699.         if m22 > (i == 0 and m00 or m11) then
  700.             i = 2
  701.         end
  702.         if i == 0 then
  703.             local s = math.sqrt(m00 - m11 - m22 + 1)
  704.             local recip = 0.5 / s
  705.             return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  706.         elseif i == 1 then
  707.             local s = math.sqrt(m11 - m22 - m00 + 1)
  708.             local recip = 0.5 / s
  709.             return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  710.         elseif i == 2 then
  711.             local s = math.sqrt(m22 - m00 - m11 + 1)
  712.             local recip = 0.5 / s
  713.             return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  714.         end
  715.     end
  716. end
  717. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  718.     local xs, ys, zs = x + x, y + y, z + z
  719.     local wx, wy, wz = w * xs, w * ys, w * zs
  720.     local xx = x * xs
  721.     local xy = x * ys
  722.     local xz = x * zs
  723.     local yy = y * ys
  724.     local yz = y * zs
  725.     local zz = z * zs
  726.     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))
  727. end
  728. function QuaternionSlerp(a, b, t)
  729.     local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  730.     local startInterp, finishInterp
  731.     if cosTheta >= 1.0E-4 then
  732.         if 1 - cosTheta > 1.0E-4 then
  733.             local theta = math.acos(cosTheta)
  734.             local invSinTheta = 1 / Sin(theta)
  735.             startInterp = Sin((1 - t) * theta) * invSinTheta
  736.             finishInterp = Sin(t * theta) * invSinTheta
  737.         else
  738.             startInterp = 1 - t
  739.             finishInterp = t
  740.         end
  741.     elseif 1 + cosTheta > 1.0E-4 then
  742.         local theta = math.acos(-cosTheta)
  743.         local invSinTheta = 1 / Sin(theta)
  744.         startInterp = Sin((t - 1) * theta) * invSinTheta
  745.         finishInterp = Sin(t * theta) * invSinTheta
  746.     else
  747.         startInterp = t - 1
  748.         finishInterp = t
  749.     end
  750.     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
  751. end
  752. function rayCast(Position, Direction, Range, Ignore)
  753.     return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  754. end
  755. local RbxUtility = LoadLibrary("RbxUtility")
  756. local Create = RbxUtility.Create
  757. local insta = true
  758.  
  759. Chestplate = Instance.new("Decal")
  760. Chestplate.Parent = Torso
  761. Chestplate.Texture = "rbxassetid://41716621"
  762. Chestplate.Face = "Front"
  763.  
  764. --EFFECTS--
  765.  
  766. local ColorArray = {ColorSequenceKeypoint.new(0, Color3.new(0/255,170/255,255/255)),ColorSequenceKeypoint.new(1, Color3.new(0/255,170/255,255/255))}
  767. local att1 = Instance.new("Attachment", c["Right Leg"])
  768. att1.Name = "att1"
  769. att1.Position = Vector3.new(0.5, 1, 0.5)
  770. local att2 = Instance.new("Attachment", c["Right Leg"])
  771. att2.Name = "att2"
  772. att2.Position = Vector3.new(-0.5, 1, 0.5)
  773. local att3 = Instance.new("Attachment", c["Right Leg"])
  774. att3.Name = "att3"
  775. att3.Position = Vector3.new(0.5, -1, 0.5)
  776. local att4 = Instance.new("Attachment", c["Right Leg"])
  777. att4.Name = "att4"
  778. att4.Position = Vector3.new(-0.5, -1, 0.5)
  779.  
  780. local attt1 = Instance.new("Attachment", c["Left Leg"])
  781. attt1.Name = "att1"
  782. attt1.Position = Vector3.new(0.5, 1, 0.5)
  783. local attt2 = Instance.new("Attachment", c["Left Leg"])
  784. attt2.Name = "att2"
  785. attt2.Position = Vector3.new(-0.5, 1, 0.5)
  786. local attt3 = Instance.new("Attachment", c["Left Leg"])
  787. attt3.Name = "att3"
  788. attt3.Position = Vector3.new(0.5, -1, 0.5)
  789. local attt4 = Instance.new("Attachment", c["Left Leg"])
  790. attt4.Name = "att4"
  791. attt4.Position = Vector3.new(-0.5, -1, 0.5)
  792.  
  793. local trailtop1 = Instance.new("Trail", c["Right Leg"])
  794. trailtop1.Enabled = true
  795. trailtop1.Texture = "rbxassetid://16607923"
  796. trailtop1.Name = "toptrail"
  797. trailtop1.MinLength = 0
  798. trailtop1.Lifetime = 0.1
  799.  
  800. trailtop1.Color = ColorSequence.new(ColorArray)
  801.  
  802. trailtop1.Attachment0 = att1
  803. trailtop1.Attachment1 = att2
  804. trailtop1.Transparency = NumberSequence.new({
  805.           NumberSequenceKeypoint.new(0, 0.5, 0),
  806.           NumberSequenceKeypoint.new(1, 1, 0)
  807.         })
  808.  
  809. local trailbot1 = Instance.new("Trail", c["Right Leg"])
  810. trailbot1.Enabled = true
  811. trailbot1.Texture = "rbxassetid://16607923"
  812. trailbot1.Name = "bottrail"
  813. trailbot1.MinLength = 0
  814. trailbot1.Lifetime = 0.1
  815.  
  816. trailbot1.Color = ColorSequence.new(ColorArray)
  817.  
  818. trailbot1.Attachment0 = att3
  819. trailbot1.Attachment1 = att4
  820. trailbot1.Transparency = NumberSequence.new({
  821.           NumberSequenceKeypoint.new(0, 0.5, 0),
  822.           NumberSequenceKeypoint.new(1, 1, 0)
  823.         })
  824.  
  825. local trailside1 = Instance.new("Trail", c["Right Leg"])
  826. trailside1.Enabled = true
  827. trailside1.Texture = "rbxassetid://16607923"
  828. trailside1.Name = "sidetrail1"
  829. trailside1.MinLength = 0
  830. trailside1.Lifetime = 0.1
  831.  
  832. trailside1.Color = ColorSequence.new(ColorArray)
  833.  
  834. trailside1.Attachment0 = att1
  835. trailside1.Attachment1 = att3
  836. trailside1.Transparency = NumberSequence.new({
  837.           NumberSequenceKeypoint.new(0, 0.5, 0),
  838.           NumberSequenceKeypoint.new(1, 1, 0)
  839.         })
  840.  
  841. local trailside2 = Instance.new("Trail", c["Right Leg"])
  842. trailside2.Enabled = true
  843. trailside2.Texture = "rbxassetid://16607923"
  844. trailside2.Name = "sidetrail2"
  845. trailside2.MinLength = 0
  846. trailside2.Lifetime = 0.1
  847. spawn(function()
  848. while true do wait()
  849. trailside2.Color = ColorSequence.new(ColorArray)
  850. end
  851. end)
  852. trailside2.Attachment0 = att2
  853. trailside2.Attachment1 = att4
  854. trailside2.Transparency = NumberSequence.new({
  855.           NumberSequenceKeypoint.new(0, 0.5, 0),
  856.           NumberSequenceKeypoint.new(1, 1, 0)
  857.         })
  858.  
  859.  
  860. local trailtop12 = Instance.new("Trail", c["Left Leg"])
  861. trailtop12.Enabled = true
  862. trailtop12.Texture = "rbxassetid://16607923"
  863. trailtop12.Name = "toptrail"
  864. trailtop12.MinLength = 0
  865. trailtop12.Lifetime = 0.1
  866. spawn(function()
  867. while true do wait()
  868. trailtop12.Color = ColorSequence.new(ColorArray)
  869. end
  870. end)
  871. trailtop12.Attachment0 = attt1
  872. trailtop12.Attachment1 = attt2
  873. trailtop12.Transparency = NumberSequence.new({
  874.           NumberSequenceKeypoint.new(0, 0.5, 0),
  875.           NumberSequenceKeypoint.new(1, 1, 0)
  876.         })
  877.  
  878. local trailbot2 = Instance.new("Trail", c["Left Leg"])
  879. trailbot2.Enabled = true
  880. trailbot2.Texture = "rbxassetid://16607923"
  881. trailbot2.Name = "bottrail"
  882. trailbot2.MinLength = 0
  883. trailbot2.Lifetime = 0.1
  884.  
  885. trailbot2.Color = ColorSequence.new(ColorArray)
  886.  
  887. trailbot2.Attachment0 = attt3
  888. trailbot2.Attachment1 = attt4
  889. trailbot2.Transparency = NumberSequence.new({
  890.           NumberSequenceKeypoint.new(0, 0.5, 0),
  891.           NumberSequenceKeypoint.new(1, 1, 0)
  892.         })
  893.  
  894. local trailside12 = Instance.new("Trail", c["Left Leg"])
  895. trailside12.Enabled = true
  896. trailside12.Texture = "rbxassetid://16607923"
  897. trailside12.Name = "sidetrail1"
  898. trailside12.MinLength = 0
  899. trailside12.Lifetime = 0.1
  900.  
  901. trailside12.Color = ColorSequence.new(ColorArray)
  902.  
  903. trailside12.Attachment0 = attt1
  904. trailside12.Attachment1 = attt3
  905. trailside12.Transparency = NumberSequence.new({
  906.           NumberSequenceKeypoint.new(0, 0.5, 0),
  907.           NumberSequenceKeypoint.new(1, 1, 0)
  908.         })
  909.  
  910. local trailside22 = Instance.new("Trail", c["Left Leg"])
  911. trailside22.Enabled = true
  912. trailside22.Texture = "rbxassetid://16607923"
  913. trailside22.Name = "sidetrail2"
  914. trailside22.MinLength = 0
  915. trailside22.Lifetime = 0.1
  916.  
  917. trailside22.Color = ColorSequence.new(ColorArray)
  918.  
  919. trailside22.Attachment0 = attt2
  920. trailside22.Attachment1 = attt4
  921. trailside22.Transparency = NumberSequence.new({
  922.           NumberSequenceKeypoint.new(0, 0.5, 0),
  923.           NumberSequenceKeypoint.new(1, 1, 0)
  924.         })
  925.  
  926.  
  927. local att1 = Instance.new("Attachment", c["Right Arm"])
  928. att1.Name = "att1"
  929. att1.Position = Vector3.new(0.5, 1, 0.5)
  930. local att2 = Instance.new("Attachment", c["Right Arm"])
  931. att2.Name = "att2"
  932. att2.Position = Vector3.new(-0.5, 1, 0.5)
  933. local att3 = Instance.new("Attachment", c["Right Arm"])
  934. att3.Name = "att3"
  935. att3.Position = Vector3.new(0.5, -1, 0.5)
  936. local att4 = Instance.new("Attachment", c["Right Arm"])
  937. att4.Name = "att4"
  938. att4.Position = Vector3.new(-0.5, -1, 0.5)
  939.  
  940. local attt1 = Instance.new("Attachment", c["Left Arm"])
  941. attt1.Name = "att1"
  942. attt1.Position = Vector3.new(0.5, 1, 0.5)
  943. local attt2 = Instance.new("Attachment", c["Left Arm"])
  944. attt2.Name = "att2"
  945. attt2.Position = Vector3.new(-0.5, 1, 0.5)
  946. local attt3 = Instance.new("Attachment", c["Left Arm"])
  947. attt3.Name = "att3"
  948. attt3.Position = Vector3.new(0.5, -1, 0.5)
  949. local attt4 = Instance.new("Attachment", c["Left Arm"])
  950. attt4.Name = "att4"
  951. attt4.Position = Vector3.new(-0.5, -1, 0.5)
  952.  
  953. local trailtop1 = Instance.new("Trail", c["Right Arm"])
  954. trailtop1.Enabled = true
  955. trailtop1.Texture = "rbxassetid://16607923"
  956. trailtop1.Name = "toptrail"
  957. trailtop1.MinLength = 0
  958. trailtop1.Lifetime = 0.1
  959.  
  960. trailtop1.Color = ColorSequence.new(ColorArray)
  961.  
  962. trailtop1.Attachment0 = att1
  963. trailtop1.Attachment1 = att2
  964. trailtop1.Transparency = NumberSequence.new({
  965.           NumberSequenceKeypoint.new(0, 0.5, 0),
  966.           NumberSequenceKeypoint.new(1, 1, 0)
  967.         })
  968.  
  969. local trailbot1 = Instance.new("Trail", c["Right Arm"])
  970. trailbot1.Enabled = true
  971. trailbot1.Texture = "rbxassetid://16607923"
  972. trailbot1.Name = "bottrail"
  973. trailbot1.MinLength = 0
  974. trailbot1.Lifetime = 0.1
  975. spawn(function()
  976. while true do wait()
  977. trailbot1.Color = ColorSequence.new(ColorArray)
  978. end
  979. end)
  980. trailbot1.Attachment0 = att3
  981. trailbot1.Attachment1 = att4
  982. trailbot1.Transparency = NumberSequence.new({
  983.           NumberSequenceKeypoint.new(0, 0.5, 0),
  984.           NumberSequenceKeypoint.new(1, 1, 0)
  985.         })
  986.  
  987. local trailside1 = Instance.new("Trail", c["Right Arm"])
  988. trailside1.Enabled = true
  989. trailside1.Texture = "rbxassetid://16607923"
  990. trailside1.Name = "sidetrail1"
  991. trailside1.MinLength = 0
  992. trailside1.Lifetime = 0.1
  993.  
  994. trailside1.Color = ColorSequence.new(ColorArray)
  995.  
  996. trailside1.Attachment0 = att1
  997. trailside1.Attachment1 = att3
  998. trailside1.Transparency = NumberSequence.new({
  999.           NumberSequenceKeypoint.new(0, 0.5, 0),
  1000.           NumberSequenceKeypoint.new(1, 1, 0)
  1001.         })
  1002.  
  1003. local trailside2 = Instance.new("Trail", c["Right Arm"])
  1004. trailside2.Enabled = true
  1005. trailside2.Texture = "rbxassetid://16607923"
  1006. trailside2.Name = "sidetrail2"
  1007. trailside2.MinLength = 0
  1008. trailside2.Lifetime = 0.1
  1009.  
  1010. trailside2.Color = ColorSequence.new(ColorArray)
  1011.  
  1012. trailside2.Attachment0 = att2
  1013. trailside2.Attachment1 = att4
  1014. trailside2.Transparency = NumberSequence.new({
  1015.           NumberSequenceKeypoint.new(0, 0.5, 0),
  1016.           NumberSequenceKeypoint.new(1, 1, 0)
  1017.         })
  1018.  
  1019.  
  1020. local trailtop12 = Instance.new("Trail", c["Left Arm"])
  1021. trailtop12.Enabled = true
  1022. trailtop12.Texture = "rbxassetid://16607923"
  1023. trailtop12.Name = "toptrail"
  1024. trailtop12.MinLength = 0
  1025. trailtop12.Lifetime = 0.1
  1026.  
  1027. trailtop12.Color = ColorSequence.new(ColorArray)
  1028.  
  1029. trailtop12.Attachment0 = attt1
  1030. trailtop12.Attachment1 = attt2
  1031. trailtop12.Transparency = NumberSequence.new({
  1032.           NumberSequenceKeypoint.new(0, 0.5, 0),
  1033.           NumberSequenceKeypoint.new(1, 1, 0)
  1034.         })
  1035.  
  1036. local trailbot2 = Instance.new("Trail", c["Left Arm"])
  1037. trailbot2.Enabled = true
  1038. trailbot2.Texture = "rbxassetid://16607923"
  1039. trailbot2.Name = "bottrail"
  1040. trailbot2.MinLength = 0
  1041. trailbot2.Lifetime = 0.1
  1042.  
  1043. trailbot2.Color = ColorSequence.new(ColorArray)
  1044.  
  1045. trailbot2.Attachment0 = attt3
  1046. trailbot2.Attachment1 = attt4
  1047. trailbot2.Transparency = NumberSequence.new({
  1048.           NumberSequenceKeypoint.new(0, 0.5, 0),
  1049.           NumberSequenceKeypoint.new(1, 1, 0)
  1050.         })
  1051.  
  1052. local trailside12 = Instance.new("Trail", c["Left Arm"])
  1053. trailside12.Enabled = true
  1054. trailside12.Texture = "rbxassetid://16607923"
  1055. trailside12.Name = "sidetrail1"
  1056. trailside12.MinLength = 0
  1057. trailside12.Lifetime = 0.1
  1058.  
  1059. trailside12.Color = ColorSequence.new(ColorArray)
  1060.  
  1061. trailside12.Attachment0 = attt1
  1062. trailside12.Attachment1 = attt3
  1063. trailside12.Transparency = NumberSequence.new({
  1064.           NumberSequenceKeypoint.new(0, 0.5, 0),
  1065.           NumberSequenceKeypoint.new(1, 1, 0)
  1066.         })
  1067.  
  1068. local trailside22 = Instance.new("Trail", c["Left Arm"])
  1069. trailside22.Enabled = true
  1070. trailside22.Texture = "rbxassetid://16607923"
  1071. trailside22.Name = "sidetrail2"
  1072. trailside22.MinLength = 0
  1073. trailside22.Lifetime = 0.1
  1074.  
  1075. trailside22.Color = ColorSequence.new(ColorArray)
  1076.  
  1077. trailside22.Attachment0 = attt2
  1078. trailside22.Attachment1 = attt4
  1079. trailside22.Transparency = NumberSequence.new({
  1080.           NumberSequenceKeypoint.new(0, 0.5, 0),
  1081.           NumberSequenceKeypoint.new(1, 1, 0)
  1082.         })
  1083.  
  1084. local att1 = Instance.new("Attachment", c["Torso"])
  1085. att1.Name = "att1"
  1086. att1.Position = Vector3.new(1, 1, 0.5)
  1087. local att2 = Instance.new("Attachment", c["Torso"])
  1088. att2.Name = "att2"
  1089. att2.Position = Vector3.new(-1, 1, 0.5)
  1090. local att3 = Instance.new("Attachment", c["Torso"])
  1091. att3.Name = "att3"
  1092. att3.Position = Vector3.new(1, -1, 0.5)
  1093. local att4 = Instance.new("Attachment", c["Torso"])
  1094. att4.Name = "att4"
  1095. att4.Position = Vector3.new(-1, -1, 0.5)
  1096.  
  1097. local attt1 = Instance.new("Attachment", c["Head"])
  1098. attt1.Name = "att1"
  1099. attt1.Position = Vector3.new(.55, .55, 0.025)
  1100. local attt2 = Instance.new("Attachment", c["Head"])
  1101. attt2.Name = "att2"
  1102. attt2.Position = Vector3.new(-.55, .55, 0.025)
  1103. local attt3 = Instance.new("Attachment", c["Head"])
  1104. attt3.Name = "att3"
  1105. attt3.Position = Vector3.new(.55, -.5, 0.025)
  1106. local attt4 = Instance.new("Attachment", c["Head"])
  1107. attt4.Name = "att4"
  1108. attt4.Position = Vector3.new(-.55, -.5, 0.025)
  1109. local trailtop1 = Instance.new("Trail", c["Torso"])
  1110. trailtop1.Enabled = true
  1111. trailtop1.Texture = "rbxassetid://16607923"
  1112. trailtop1.Name = "toptrail"
  1113. trailtop1.MinLength = 0
  1114. trailtop1.Lifetime = 0.1
  1115.  
  1116. trailtop1.Color = ColorSequence.new(ColorArray)
  1117.  
  1118. trailtop1.Attachment0 = att1
  1119. trailtop1.Attachment1 = att2
  1120. trailtop1.Transparency = NumberSequence.new({
  1121.           NumberSequenceKeypoint.new(0, 0.5, 0),
  1122.           NumberSequenceKeypoint.new(1, 1, 0)
  1123.         })
  1124. local trailbot1 = Instance.new("Trail", c["Torso"])
  1125. trailbot1.Enabled = true
  1126. trailbot1.Texture = "rbxassetid://16607923"
  1127. trailbot1.Name = "bottrail"
  1128. trailbot1.MinLength = 0
  1129. trailbot1.Lifetime = 0.1
  1130.  
  1131. trailbot1.Color = ColorSequence.new(ColorArray)
  1132.  
  1133. trailbot1.Attachment0 = att3
  1134. trailbot1.Attachment1 = att4
  1135. trailbot1.Transparency = NumberSequence.new({
  1136.           NumberSequenceKeypoint.new(0, 0.5, 0),
  1137.           NumberSequenceKeypoint.new(1, 1, 0)
  1138.         })
  1139. local trailside1 = Instance.new("Trail", c["Torso"])
  1140. trailside1.Enabled = true
  1141. trailside1.Texture = "rbxassetid://16607923"
  1142. trailside1.Name = "sidetrail1"
  1143. trailside1.MinLength = 0
  1144. trailside1.Lifetime = 0.1
  1145.  
  1146. trailside1.Color = ColorSequence.new(ColorArray)
  1147.  
  1148. trailside1.Attachment0 = att1
  1149. trailside1.Attachment1 = att3
  1150. trailside1.Transparency = NumberSequence.new({
  1151.           NumberSequenceKeypoint.new(0, 0.5, 0),
  1152.           NumberSequenceKeypoint.new(1, 1, 0)
  1153.         })
  1154. local trailside2 = Instance.new("Trail", c["Torso"])
  1155. trailside2.Enabled = true
  1156. trailside2.Texture = "rbxassetid://16607923"
  1157. trailside2.Name = "sidetrail2"
  1158. trailside2.MinLength = 0
  1159. trailside2.Lifetime = 0.1
  1160.  
  1161. trailside2.Color = ColorSequence.new(ColorArray)
  1162.  
  1163. trailside2.Attachment0 = att2
  1164. trailside2.Attachment1 = att4
  1165. trailside2.Transparency = NumberSequence.new({
  1166.           NumberSequenceKeypoint.new(0, 0.5, 0),
  1167.           NumberSequenceKeypoint.new(1, 1, 0)
  1168.         })
  1169. local trailtop12 = Instance.new("Trail", c["Head"])
  1170. trailtop12.Enabled = true
  1171. trailtop12.Texture = "rbxassetid://16607923"
  1172. trailtop12.Name = "toptrail"
  1173. trailtop12.MinLength = 0
  1174. trailtop12.Lifetime = 0.1
  1175.  
  1176. trailtop12.Color = ColorSequence.new(ColorArray)
  1177.  
  1178. trailtop12.Attachment0 = attt1
  1179. trailtop12.Attachment1 = attt2
  1180. trailtop12.Transparency = NumberSequence.new({
  1181.           NumberSequenceKeypoint.new(0, 0.5, 0),
  1182.           NumberSequenceKeypoint.new(1, 1, 0)
  1183.         })
  1184. local trailbot2 = Instance.new("Trail", c["Head"])
  1185. trailbot2.Enabled = true
  1186. trailbot2.Texture = "rbxassetid://16607923"
  1187. trailbot2.Name = "bottrail"
  1188. trailbot2.MinLength = 0
  1189. trailbot2.Lifetime = 0.1
  1190.  
  1191. trailbot2.Color = ColorSequence.new(ColorArray)
  1192.  
  1193. trailbot2.Attachment0 = attt3
  1194. trailbot2.Attachment1 = attt4
  1195. trailbot2.Transparency = NumberSequence.new({
  1196.           NumberSequenceKeypoint.new(0, 0.5, 0),
  1197.           NumberSequenceKeypoint.new(1, 1, 0)
  1198.         })
  1199. local trailside12 = Instance.new("Trail", c["Head"])
  1200. trailside12.Enabled = true
  1201. trailside12.Texture = "rbxassetid://16607923"
  1202. trailside12.Name = "sidetrail1"
  1203. trailside12.MinLength = 0
  1204. trailside12.Lifetime = 0.1
  1205.  
  1206. trailside12.Color = ColorSequence.new(ColorArray)
  1207.  
  1208. trailside12.Attachment0 = attt1
  1209. trailside12.Attachment1 = attt3
  1210. trailside12.Transparency = NumberSequence.new({
  1211.           NumberSequenceKeypoint.new(0, 0.5, 0),
  1212.           NumberSequenceKeypoint.new(1, 1, 0)
  1213.         })
  1214. local trailside22 = Instance.new("Trail", c["Head"])
  1215. trailside22.Enabled = true
  1216. trailside22.Texture = "rbxassetid://16607923"
  1217. trailside22.Name = "sidetrail2"
  1218. trailside22.MinLength = 0
  1219. trailside22.Lifetime = 0.1
  1220.  
  1221. trailside22.Color = ColorSequence.new(ColorArray)
  1222.  
  1223. trailside22.Attachment0 = attt2 trailside22.Attachment1 = attt4
  1224. trailside22.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0),NumberSequenceKeypoint.new(1, 1, 0)})
  1225.  
  1226. --ATTACKS--
  1227.  
  1228. function CreateSound(ID, PARENT, VOLUME, PITCH) --Very important.
  1229.     local NSound = nil
  1230.     coroutine.resume(coroutine.create(function()
  1231.         NSound = Instance.new("Sound", PARENT)
  1232.         NSound.Volume = VOLUME
  1233.         NSound.Pitch = PITCH
  1234.         NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1235.         swait()
  1236.         NSound:play()
  1237.         game:GetService("Debris"):AddItem(NSound, 10)
  1238.     end))
  1239.     return NSound
  1240. end
  1241.  
  1242. function PUNCH()
  1243.     attack = true
  1244.         local hitbox = Instance.new("Part")
  1245.         hitbox.Parent = RightArm
  1246.         hitbox.Size = RightArm.Size
  1247.         hitbox.Anchored = false
  1248.         hitbox.CanCollide = false
  1249.         hitbox.Transparency = 1
  1250.         hitbox.BrickColor = BrickColor.new("Royal purple")
  1251.         hitbox.Locked = false
  1252.         local hitweld = Instance.new("Weld")
  1253.         hitweld.Parent = hitbox
  1254.         hitweld.Part0 = hitbox
  1255.         hitweld.Part1 = RightArm
  1256.         hitbox.Touched:Connect(function(hit)
  1257.             for _,v in pairs (hit.Parent:children()) do
  1258.         if v:IsA("Humanoid") then
  1259.             v.Health = v.Health - 25
  1260.         end
  1261.     end
  1262.         end)
  1263.     hum.WalkSpeed = 4.01
  1264.         Character.Head.face.Texture = "rbxassetid://304904077"
  1265.     CreateSound("1166082641", hed, 10, 1)
  1266.     for i = 0,6,0.1 do
  1267.         swait()
  1268.         rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1269.         tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1270.         RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.4)
  1271.         LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.4)
  1272.         RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1)
  1273.         LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1)
  1274.     end
  1275.     for i = 0,3.2,0.1 do
  1276.         swait()
  1277.         rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1278.         tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1279.         RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.4)
  1280.         LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.4)
  1281.         RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(0), Rad(5)), 0.1)
  1282.         LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-5)), 0.1)
  1283.     end
  1284.     hum.WalkSpeed = 16
  1285.         Character.Head.face.Texture = "rbxassetid://1399284080"
  1286.     attack = false
  1287.     hitbox:Destroy()
  1288. end
  1289.  
  1290. mouse.Button1Down:connect(function(key)
  1291.     if attack == false then
  1292.     PUNCH()
  1293.     end
  1294. end)
  1295.  
  1296. ---ANIMATIONS--
  1297.  
  1298. local equipped = false
  1299. local idle = 0
  1300. local change = 1
  1301. local val = 0
  1302. local toim = 0
  1303. local idleanim = 0.4
  1304. hum.Animator.Parent = nil
  1305. while true do
  1306.     swait()
  1307.     sine = sine + change
  1308.     local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1309.     local velderp = root.Velocity.y
  1310.     hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
  1311.     if equipped == true or equipped == false then
  1312.         if attack == false then
  1313.             idle = idle + 1
  1314.         else
  1315.             idle = 0
  1316.         end
  1317.         if 1 < root.Velocity.y and hitfloor == nil then
  1318.             Anim = "Jump"
  1319.             if attack == false then
  1320.                 rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.3)
  1321.                 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-40), Rad(0), Rad(0)), 0.3)
  1322.                 RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(Rad(30), Rad(0), Rad(20)), 0.3)
  1323.                 LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-20), Rad(0), Rad(-30)), 0.3)
  1324.                 LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -0.3) * LHCF * angles(Rad(-5), Rad(0), Rad(20)), 0.15)
  1325.                 RH.C0 = clerp(RH.C0, CF(1, -1, 0.3) * angles(Rad(0), Rad(90), Rad(-20)), 0.3)
  1326.             end
  1327.         elseif -1 > root.Velocity.y and hitfloor == nil then
  1328.             Anim = "Fall"
  1329.             if attack == false then
  1330.                 rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-5), Rad(0), Rad(0)), 0.3)
  1331.                 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(40), Rad(0), Rad(0)), 0.3)
  1332.                 RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(Rad(30), Rad(0), Rad(20)), 0.3)
  1333.                 LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-20), Rad(0), Rad(-30)), 0.3)
  1334.                 LH.C0=clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
  1335.                 RH.C0=clerp(RH.C0, CF(1,-.3-0.1 * Cos(sine / 20), -.6) * angles(Rad(0), Rad(90), Rad(-20)), .3)
  1336.             end
  1337.         elseif torvel < 1 and hitfloor ~= nil then
  1338.             Anim = "Idle"
  1339.             change = 1
  1340.             if attack == false then
  1341.                 rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1342.                 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1343.                 RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1344.                 LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1345.                 RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(30 * Cos(sine / 20)), Rad(0), Rad(5)), 0.1)
  1346.                 LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(30 * Cos(sine / 20)), Rad(0), Rad(-5)), 0.1)
  1347.             end
  1348.         elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then
  1349.             Anim = "Walk"
  1350.             change = 1
  1351.             if attack == false then
  1352.                 rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(9-2.5 * Cos(sine / 3.5)), Rad(0), Rad(10 * Cos(sine / 7))), 0.15)
  1353.                 tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1354.                 RH.C0 = clerp(RH.C0, CFrame.new(1, -0.925 - 0.5 * math.cos(sine / 7) / 2, 0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 - 35 * math.cos(sine / 7)) + -math.sin(sine / 7) / 2.5, math.rad(90 - 2 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 + 2.5 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3)
  1355.                 LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.925 + 0.5 * math.cos(sine / 7) / 2, -0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 + 35 * math.cos(sine / 7)) + math.sin(sine / 7) / 2.5, math.rad(-90 - 2 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 - 2.5 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3)
  1356.                 RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(70) * Cos(sine / 7) , Rad(0), Rad(5)), 0.1)
  1357.                 LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-70) * Cos(sine / 7) , Rad(0),  Rad(-5)), 0.1)
  1358.             end
  1359.         end
  1360.     end
  1361.     if 0 < #Effects then
  1362.         for e = 1, #Effects do
  1363.             if Effects[e] ~= nil then
  1364.                 local Thing = Effects[e]
  1365.                 if Thing ~= nil then
  1366.                     local Part = Thing[1]
  1367.                     local Mode = Thing[2]
  1368.                     local Delay = Thing[3]
  1369.                     local IncX = Thing[4]
  1370.                     local IncY = Thing[5]
  1371.                     local IncZ = Thing[6]
  1372.                     if 1 >= Thing[1].Transparency then
  1373.                         if Thing[2] == "Block1" then
  1374.                             Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1375.                             local Mesh = Thing[1].Mesh
  1376.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1377.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1378.                         elseif Thing[2] == "Block2" then
  1379.                             Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1380.                             local Mesh = Thing[7]
  1381.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1382.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1383.                         elseif Thing[2] == "Block3" then
  1384.                             Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
  1385.                             local Mesh = Thing[7]
  1386.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1387.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1388.                         elseif Thing[2] == "Cylinder" then
  1389.                             local Mesh = Thing[1].Mesh
  1390.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1391.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1392.                         elseif Thing[2] == "Blood" then
  1393.                             local Mesh = Thing[7]
  1394.                             Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1395.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1396.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1397.                         elseif Thing[2] == "Elec" then
  1398.                             local Mesh = Thing[1].Mesh
  1399.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1400.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1401.                         elseif Thing[2] == "Disappear" then
  1402.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1403.                         elseif Thing[2] == "Shatter" then
  1404.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1405.                             Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1406.                             Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1407.                             Thing[6] = Thing[6] + Thing[5]
  1408.                         end
  1409.                     else
  1410.                         Part.Parent = nil
  1411.                         table.remove(Effects, e)
  1412.                     end
  1413.                 end
  1414.             end
  1415.         end
  1416.     end
  1417. end
  1418. -------------------------------------------------------
  1419. --End Animations And Script--
  1420. -------------------------------------------------------
  1421.  
  1422. --u mom--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement