Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Mp = game:GetService("Players").LocalPlayer
- local Mpc = Mp.Character
- local Head,Torso,Ra,La,Rl,Ll = Mpc.Torso.Neck,Mpc.HumanoidRootPart.RootJoint,Mpc.Torso["Right Shoulder"],Mpc.Torso["Left Shoulder"],Mpc.Torso["Right Hip"],Mpc.Torso["Left Hip"]
- local oHead,oTorso,oRa,oLa,oRl,oLl = Head.C0,Torso.C0,Ra.C0,La.C0,Rl.C0,Ll.C0
- local Mouse = Mp:GetMouse()
- local Spam = false
- local Animation = ""
- local Walking = false
- local Walk = 1
- local Movement = {['w'] = false, ['s'] = false, ['a'] = false, ['d'] = false, ["moving"] = false}
- local Darkness = {}
- local New = function(Object, Parent, Name, Data) --Thanks jarred for this function everything else by Kanon Nakagawa
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- local Fix = function()
- Head.C0 = oHead
- Torso.C0 = oTorso
- Ra.C0 = oRa
- La.C0 = oLa
- Rl.C0 = oRl
- Ll.C0 = oLl
- end
- local Chat = function(Msg)
- game:GetService("Chat"):Chat(Mpc.Head, Msg)
- end
- local getHumanoid = function(Player)
- for k,v in pairs(Player:GetChildren()) do
- if v.ClassName == "Humanoid" then
- return v
- end
- end
- return false
- end
- local Damage = function(Humanoid, Amount)
- Humanoid.Health = Humanoid.Health - (Humanoid.MaxHealth*(Amount/100))
- end
- local rWait = function(Seconds)
- game:GetService("RunService").Stepped:wait(Seconds)
- end
- Mpc.Animate.Disabled = true
- for k,v in ipairs(Mpc.Humanoid:GetPlayingAnimationTracks()) do
- v:Stop()
- end
- for k,v in pairs(Mpc:GetChildren()) do
- if v:isA("CharacterAppearance") and v.Name ~= "Body Colors" then
- v:Destroy()
- end
- ypcall(function()
- v.BrickColor = BrickColor:White()
- end)
- for g,p in pairs(v:GetChildren()) do
- ypcall(function()
- p.BrickColor = BrickColor:White()
- ypcall(function()
- p.Mesh.VertexColor = Vector3.new(0,0,0)
- end)
- end)
- end
- end
- wait(1)
- Mpc.Head.face:Destroy()
- local fakeHead = Mpc.Head:Clone()
- fakeHead.Name = "Fake Head"
- fakeHead.Parent = Mpc
- local fakeHeadW = Instance.new("Weld", fakeHead)
- fakeHeadW.Part0 = Mpc.Head
- fakeHeadW.Part1 = fakeHead
- Mpc.Head.Transparency = 1
- Mpc.Animate.Disabled = true
- Mpc.Humanoid.WalkSpeed = 30
- Mouse.KeyDown:connect(function(Key)
- local Key = Key:lower()
- if Movement[Key] ~= nil then
- Movement[Key] = true
- Movement["moving"] = true
- end
- if Key == "f" and (Animation == "f" or Spam == false and Mouse.Target ~= nil and Mouse.Target.Parent.ClassName == "Model" and getHumanoid(Mouse.Target.Parent) ~= nil and Mouse.Target.Parent:FindFirstChild("Torso")) then
- Spam = true
- Fix()
- if Animation == "" then
- local Target = Mouse.Target.Parent
- wait(0.25)
- Ra.C0 = CFrame.new(1, 0.5, 0, 0, 0, 0.99999994, 1, -4.37113883e-008, 0, 4.37113883e-008, 1, 0)
- La.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, -1, 1.19248806e-008, 0, 1.19248806e-008, 1, 0)
- Rl.C0 = CFrame.new(1, -1, 0, -1.05367121e-007, -0.342020243, 0.939692497, 0.707106769, 0.664462864, 0.241844878, -0.70710665, 0.664463043, 0.241844773)
- Ll.C0 = CFrame.new(-1, -1, 0, 0, 0.342020094, -0.939692557, -0.707106829, 0.664462984, 0.241844729, 0.707106709, 0.664463043, 0.241844758)
- Mpc.Torso.CFrame = Target.Torso.CFrame * CFrame.new(0,0,1)
- local W = Instance.new("Weld",Mpc.Torso)
- W.Name = "Attached"
- W.Part0 = Target.Torso
- W.Part1 = Mpc.Torso
- W.C0 = CFrame.new(0,0,1)
- Animation = "f"
- game:GetService("RunService").Stepped:connect(function()
- if Animation == "f" then
- ypcall(function()
- getHumanoid(Target).PlatformStand = true
- end)
- else
- return
- end
- end)
- elseif Animation == "f" then
- wait(0.25)
- Ra.C0 = CFrame.new(1, 0.5, 0, 0, 0.707106709, 0.707106709, 0.99999994, -4.21468478e-008, 4.21468478e-008, 5.96046448e-008, 0.707106709, -0.707106709)
- La.C0 = CFrame.new(-1, 0.5, 0, 0, -0.707106709, -0.707106829, -0.99999994, 8.43216341e-009, -8.43216341e-009, 1.19248798e-008, 0.707106829, -0.707106709)
- local Enemy = nil
- ypcall(function() Enemy = (Mpc.Torso.Attached.Part0).Parent end)
- Mpc.Torso.Attached:remove()
- if Enemy ~= nil then
- Animation = ""
- Damage(getHumanoid(Enemy), math.huge)
- getHumanoid(Enemy).PlatformStand = false
- end
- wait(1)
- Fix()
- Spam = false
- end
- elseif Key == "g" and Spam == false and Mouse.Target ~= nil and Mouse.Target.Parent.ClassName == "Model" and getHumanoid(Mouse.Target.Parent) ~= nil and Mouse.Target.Parent:FindFirstChild("Torso") then
- Spam = true
- local Target = Mouse.Target.Parent
- wait(0.25)
- for i=1,5 do
- local Ghost = New("Model", Mpc,"Ghost",{})
- local Boo = New("Part",Ghost,"Boo",{BrickColor = BrickColor.new("Institutional white"),FormFactor = Enum.FormFactor.Symmetric,Shape = Enum.PartType.Ball,Size = Vector3.new(4, 4, 4),CFrame = CFrame.new(7, 3.29965496, 11.5999756, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
- New("Decal",Boo,"Decal",{Texture = "http://www.roblox.com/asset/?id=37086549",})
- Boo.CFrame = Mpc.Torso.CFrame * CFrame.new(-15+(i*5),10, 0)
- local Rocket = Instance.new("RocketPropulsion", Boo)
- Rocket.MaxThrust = 100000
- Rocket.Target = Target.Torso
- wait(0.01)
- Rocket:Fire()
- Boo.Touched:connect(function(Hit)
- if Hit.Parent == Target then
- Damage(getHumanoid(Target), math.huge)
- Ghost:remove()
- end
- end)
- game:GetService("Debris"):AddItem(Ghost, 10)
- end
- Spam = false
- end
- end)
- game:GetService("RunService").Stepped:connect(function()
- if Movement["moving"] == false and Spam == false then
- Fix()
- Head.C0 = CFrame.new(0, 1, 0, -0.99999994, 0, 0, 0, 0.707106769, 0.707106769, 0, 0.707106709, -0.707106709)
- Ra.C0 = CFrame.new(1, 0.5, 0, -0.707106769, -1.74845553e-007, 0.707106769, -1.23634479e-007, 1, 1.23634479e-007, -0.707106769, 0, -0.707106769)
- La.C0 = CFrame.new(-1, 0.5, 0, -0.707106888, 0, -0.70710665, 0, 1, 0, 0.70710665, 0, -0.707106888)
- Walking = false
- elseif Movement["moving"] == true and Spam == false and Walking == false then
- Fix()
- Walking = true
- Head.C0 = CFrame.new(0, 1, 0, -0.70710665, 0, 0.707106888, 0.707106888, 0, 0.70710665, 0, 1, 0)
- if Walk == 1 then
- Rl.C0 = CFrame.new(1, -1, 0, -4.30473115e-008, 7.59040208e-009, 1, 0.173648134, 0.984807611, 0, -0.98480773, 0.173648149, -4.37113883e-008)
- Ll.C0 = CFrame.new(-1, -1, 0, -4.30473115e-008, 7.59040297e-009, -1, 0.173648164, 0.98480767, 0, 0.98480773, -0.173648179, -4.37113883e-008)
- elseif Walk == 2 then
- Rl.C0 = CFrame.new(1, -1, 0, -4.10752641e-008, 1.49501744e-008, 1, 0.342020065, 0.939692438, 0, -0.939692557, 0.342020094, -4.37113883e-008)
- Ll.C0 = CFrame.new(-1, -1, 0, -4.30473115e-008, 7.59040297e-009, -1, 0.173648164, 0.98480767, 0, 0.98480773, -0.173648179, -4.37113883e-008)
- elseif Walk == 3 then
- Rl.C0 = CFrame.new(1, -1, 0, -3.78551661e-008, 2.18556924e-008, 1, 0.499999881, 0.866025209, 0, -0.866025329, 0.49999994, -4.37113883e-008)
- Ll.C0 = CFrame.new(-1, -1, 0, -3.78551661e-008, 2.18556924e-008, -1, 0.49999994, 0.866025269, 0, 0.866025329, -0.49999994, -4.37113883e-008)
- elseif Walk == 4 then
- Rl.C0 = CFrame.new(1, -1, 0, -3.34848593e-008, 2.80971335e-008, 1, 0.642787457, 0.766044259, 0, -0.766044378, 0.642787516, -4.37113883e-008)
- Ll.C0 = CFrame.new(-1, -1, 0, -3.34848593e-008, 2.80971335e-008, -1, 0.642787516, 0.766044319, 0, 0.766044378, -0.642787516, -4.37113883e-008)
- elseif Walk == 5 then
- Rl.C0 = CFrame.new(1, -1, 0, -3.78551661e-008, 2.18556924e-008, 1, 0.499999881, 0.866025209, 0, -0.866025329, 0.49999994, -4.37113883e-008)
- Ll.C0 = CFrame.new(-1, -1, 0, -3.78551661e-008, 2.18556924e-008, -1, 0.49999994, 0.866025269, 0, 0.866025329, -0.49999994, -4.37113883e-008)
- elseif Walk == 6 then
- Rl.C0 = CFrame.new(1, -1, 0, -4.10752641e-008, 1.49501744e-008, 1, 0.342020065, 0.939692438, 0, -0.939692557, 0.342020094, -4.37113883e-008)
- Ll.C0 = CFrame.new(-1, -1, 0, -4.30473115e-008, 7.59040297e-009, -1, 0.173648164, 0.98480767, 0, 0.98480773, -0.173648179, -4.37113883e-008)
- elseif Walk == 7 then
- Rl.C0 = CFrame.new(1, -1, 0, -4.10752641e-008, 1.49501744e-008, 1, 0.342020065, 0.939692438, 0, -0.939692557, 0.342020094, -4.37113883e-008)
- Ll.C0 = CFrame.new(-1, -1, 0, -4.30473115e-008, 7.59040297e-009, -1, 0.173648164, 0.98480767, 0, 0.98480773, -0.173648179, -4.37113883e-008)
- elseif Walk == 8 then
- Rl.C0 = CFrame.new(1, -1, 0, -4.30473115e-008, 7.59040208e-009, 1, 0.173648134, 0.984807611, 0, -0.98480773, 0.173648149, -4.37113883e-008)
- Ll.C0 = CFrame.new(-1, -1, 0, -4.30473115e-008, 7.59040297e-009, -1, 0.173648164, 0.98480767, 0, 0.98480773, -0.173648179, -4.37113883e-008)
- elseif Walk == 9 then
- Rl.C0 = CFrame.new(1, -1, 0, -4.30473115e-008, 7.59040208e-009, 1, 0.173648134, 0.984807611, 0, -0.98480773, 0.173648149, -4.37113883e-008)
- Ll.C0 = CFrame.new(-1, -1, 0, -4.30473115e-008, -7.59040297e-009, -1, -0.173648164, 0.984807611, 0, 0.98480767, 0.173648179, -4.37113883e-008)
- elseif Walk == 10 then
- Rl.C0 = CFrame.new(1, -1, 0, -4.10752641e-008, -1.49501744e-008, 1, -0.342020094, 0.939692497, 0, -0.939692557, -0.342020124, -4.37113883e-008)
- Ll.C0 = CFrame.new(-1, -1, 0, -4.10752641e-008, -1.49501744e-008, -1, -0.342020094, 0.939692438, 0, 0.939692497, 0.342020124, -4.37113883e-008)
- elseif Walk == 11 then
- Rl.C0 = CFrame.new(1, -1, 0, -3.78551661e-008, -2.18556924e-008, 1, -0.49999994, 0.866025269, 0, -0.866025329, -0.49999994, -4.37113883e-008)
- Ll.C0 = CFrame.new(-1, -1, 0, -3.78551661e-008, -2.18556924e-008, -1, -0.499999911, 0.866025209, 0, 0.866025209, 0.49999994, -4.37113883e-008)
- elseif Walk == 12 then
- Rl.C0 = CFrame.new(1, -1, 0, -3.34848593e-008, -2.80971335e-008, 1, -0.642787516, 0.766044319, 0, -0.766044378, -0.642787516, -4.37113883e-008)
- Ll.C0 = CFrame.new(-1, -1, 0, -3.34848593e-008, -2.80971335e-008, -1, -0.642787457, 0.766044259, 0, 0.766044259, 0.642787516, -4.37113883e-008)
- elseif Walk == 13 then
- Rl.C0 = CFrame.new(1, -1, 0, -3.78551661e-008, -2.18556924e-008, 1, -0.49999994, 0.866025269, 0, -0.866025329, -0.49999994, -4.37113883e-008)
- Ll.C0 = CFrame.new(-1, -1, 0, -3.78551661e-008, -2.18556924e-008, -1, -0.499999911, 0.866025209, 0, 0.866025209, 0.49999994, -4.37113883e-008)
- elseif Walk == 14 then
- Rl.C0 = CFrame.new(1, -1, 0, -4.10752641e-008, -1.49501744e-008, 1, -0.342020094, 0.939692497, 0, -0.939692557, -0.342020124, -4.37113883e-008)
- Ll.C0 = CFrame.new(-1, -1, 0, -4.10752641e-008, -1.49501744e-008, -1, -0.342020094, 0.939692438, 0, 0.939692497, 0.342020124, -4.37113883e-008)
- elseif Walk == 15 then
- Rl.C0 = CFrame.new(1, -1, 0, -4.30473115e-008, 7.59040208e-009, 1, 0.173648134, 0.984807611, 0, -0.98480773, 0.173648149, -4.37113883e-008)
- Ll.C0 = CFrame.new(-1, -1, 0, -4.30473115e-008, -7.59040297e-009, -1, -0.173648164, 0.984807611, 0, 0.98480767, 0.173648179, -4.37113883e-008)
- Walk = 0
- end
- Walk = Walk + 1
- wait(0.075)
- Walking = false
- end
- if Spam == false then
- if #Darkness == 0 then
- for i=1,5 do
- local Dark = Instance.new("Part",Mpc)
- Dark.Name = "Dark"
- Dark.TopSurface = "Smooth"
- Dark.BottomSurface = "Smooth"
- Dark.Material = "Neon"
- Dark.BrickColor = BrickColor.new("Really black")
- Dark.Shape = "Cylinder"
- Dark.Transparency = i/10
- Dark.Size = Vector3.new(10,10+i*5,10+i*5)
- Dark.Anchored = true
- Dark.CanCollide = false
- table.insert(Darkness, Dark)
- end
- end
- local newSize = math.sin(time())
- for g,d in ipairs(Darkness) do
- d.Size = Vector3.new(10, 50+(newSize*g*2), 50+(newSize*g*2))
- d.CFrame = Mpc.Torso.CFrame * (CFrame.new(0,-7,0) * CFrame.Angles(0,0,math.rad(90)))
- end
- else
- for g,d in ipairs(Darkness) do
- d:Destroy()
- end
- Darkness = {}
- end
- end)
- Mouse.KeyUp:connect(function(Key)
- local Key = Key:lower()
- if Movement[Key] ~= nil then
- Movement[Key] = false
- if (Movement["w"] and Movement["s"] and Movement["a"] and Movement["d"]) == false then
- Movement["moving"] = false
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement