Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forcefield = Instance.new("ForceField")
- forcefield.Visible = false
- forcefield.Parent = owner.Character
- local plr = owner
- local char = plr.Character
- local hum = char:FindFirstChildOfClass("Humanoid")
- wait(0.1)
- local remote = Instance.new("RemoteEvent", char)
- remote.Name = "ReplicationEvent"
- local client = NLS([==[
- local mouse = game:GetService("Players").LocalPlayer:GetMouse()
- local remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent")
- spawn(function()
- while game:GetService("RunService").Heartbeat:Wait() do
- remote = game:GetService("Players").LocalPlayer.Character:WaitForChild("ReplicationEvent")
- end
- end)
- game:GetService("UserInputService").InputBegan:Connect(function(input, isTyping)
- if isTyping == false and input.UserInputType == Enum.UserInputType.Keyboard then
- remote:FireServer(1, input.KeyCode)
- end
- end)
- mouse.Button1Down:Connect(function()
- remote:FireServer(2)
- end)
- remote.OnClientEvent:Connect(function()
- game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position, Vector3.new(mouse.Hit.Position.X, game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position.Y, mouse.Hit.Position.Z))
- end)
- ]==], char)
- if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
- do
- script.Parent = owner.Character
- local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
- local function NewFakeEvent()
- local Bind = Instance.new("BindableEvent")
- local Fake;Fake = {Connections = {},
- fakeEvent=true;
- Connect=function(self,Func)
- Bind.Event:connect(Func)
- self.Connections[Bind] = true
- return setmetatable({Connected = true},{
- __index = function (self,Index)
- if Index:lower() == "disconnect" then
- return function() Fake.Connections[Bind] = false;self.Connected = false end
- end
- return Fake[Index]
- end;
- __tostring = function() return "Connection" end;
- })
- end}
- Fake.connect = Fake.Connect;return Fake;
- end
- local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
- local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
- local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
- self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
- end};ContextActionService.UnBindAction = ContextActionService.BindAction
- local function TriggerEvent(self,Event,...)
- local Trigger = Mouse[Event]
- if Trigger and Trigger.fakeEvent and Trigger.Connections then
- for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
- end
- end
- Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
- Event.OnServerEvent:Connect(function(FiredBy,Input)
- if FiredBy.Name ~= owner.Name then return end
- if Input.MouseEvent then
- Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
- else
- local Begin = Input.UserInputState == Enum.UserInputState.Begin
- if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
- for _,Action in pairs(ContextActionService.Actions) do
- for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
- end
- Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
- UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
- end
- end)
- InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
- Event.Parent = NLS([[
- local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
- local Input = function(Input,gameProcessedEvent)
- if gameProcessedEvent then return end
- Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
- end
- UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
- local Hit,Target
- while wait(1/30) do
- if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
- Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
- end
- end
- ]],owner.Character)
- end
- RealGame = game;game = setmetatable({},{
- __index = function (self,Index)
- local Sandbox = function (Thing)
- if Thing:IsA("Player") then
- local RealPlayer = Thing
- return setmetatable({},{
- __index = function (self,Index)
- local Type = type(RealPlayer[Index])
- if Type == "function" then
- if Index:lower() == "getmouse" or Index:lower() == "mouse" then
- return function (self)return InternalData["Mouse"] end
- end
- return function (self,...)return RealPlayer[Index](RealPlayer,...) end
- end
- return RealPlayer[Index]
- end;
- __tostring = function(self) return RealPlayer.Name end
- })
- end
- end
- if RealGame[Index] then
- local Type = type(RealGame[Index])
- if Type == "function" then
- if Index:lower() == "getservice" or Index:lower() == "service" then
- return function (self,Service)
- local FakeServices = {
- ["players"] = function()
- return setmetatable({},{
- __index = function (self2,Index2)
- local RealService = RealGame:GetService(Service)
- local Type2 = type(Index2)
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...)end
- else
- if Index2:lower() == "localplayer" then return Sandbox(owner) end
- return RealService[Index2]
- end
- end;
- __tostring = function(self) return RealGame:GetService(Service).Name end
- })
- end;
- ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
- ["userinputservice"] = function() return InternalData["UserInputService"] end;
- ["runservice"] = function()
- return setmetatable({},{
- __index = function(self2,Index2)
- local RealService = RealGame:GetService(Service)
- local Type2 = type(Index2)
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...) end
- else
- local RunServices = {
- ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
- ["renderstepped"] = function() return RealService["Stepped"] end
- }
- if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
- return RealService[Index2]
- end
- end
- })
- end
- }
- if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
- return RealGame:GetService(Service)
- end
- end
- return function (self,...) return RealGame[Index](RealGame,...) end
- else
- if game:GetService(Index) then return game:GetService(Index) end
- return RealGame[Index]
- end
- end
- return nil
- end
- });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
- Torso = char.Torso
- local crabrave = Instance.new("Sound", char.Torso)
- local RS = char.Torso["Right Shoulder"]
- local LS = char.Torso["Left Shoulder"]
- local RH = char.Torso["Right Hip"]
- local LH = char.Torso["Left Hip"]
- local rootj = char.HumanoidRootPart.RootJoint
- local throwbutton = false
- local throw = false
- local normalanim = true
- local attackd = false
- local animpose = "Idle"
- local timepos = 0
- local sine = 0
- local RSnor = RS.C0
- local LSnor = LS.C0
- local RHnor = RH.C0
- local LHnor = LH.C0
- local rootjnor = rootj.C0
- ---------------------------------
- --------------Set up-------------
- ---------------------------------
- local sur = Instance.new("BillboardGui", char.Head)
- sur.Name = "Billboard"
- sur.Adornee = char.Head
- sur.Size = UDim2.new(10, 0, 5, 0)
- sur.StudsOffset = Vector3.new(0, 5, 0)
- local text = Instance.new("TextBox", sur)
- text.Text = "J҉ E҉ V҉ I҉ L҉ HEALTH: " ..owner.Character.Humanoid.Health .. " / " ..owner.Character.Humanoid.MaxHealth
- text.Size = UDim2.new(1, 0, 1, 0)
- text.TextScaled = true
- text.BackgroundTransparency = 1
- text.Font = Enum.Font.Arcade
- text.TextColor3 = Color3.new(255, 50, 0)
- text.TextStrokeTransparency = 0
- Character = char
- for i,v in pairs(Character:children()) do
- if v:IsA("Hat") then
- v:Destroy()
- end
- end
- for i,v in pairs(Character:children()) do
- if v:IsA("Accessory") then
- v:Destroy()
- end
- end
- for i,v in pairs(Character:children()) do
- if v:IsA("Hair") then
- v:Destroy()
- end
- end
- for i,v in pairs(Character:children()) do
- if v:IsA("Shirt") then
- v:Destroy()
- end
- end
- for i,v in pairs(Character:children()) do
- if v:IsA("Pants") then
- v:Destroy()
- end
- end
- for i,v in pairs(Character:children()) do
- if v:IsA("Graphic Shirt") then
- v:Destroy()
- end
- end
- for i,v in pairs(Character:children()) do
- if v:IsA("GraphicShirt") then
- v:Destroy()
- end
- end
- for _,v in pairs(Character:children()) do
- if v:IsA("Shirt") then
- v.ShirtTemplate = "rbxassetid://0"
- elseif v:IsA("Pants") then
- v.PantsTemplate = "rbxassetid://0"
- elseif v:IsA("ShirtGraphic") then
- v:Remove()
- wait(.1)
- Torso.roblox:Remove()
- elseif v:IsA("Accessory") then
- v:Remove()
- end
- end
- shirt = "rbxassetid://2616334189"
- pants = "http://www.roblox.com/asset/?id=2616204122"
- knuckles1 = Instance.new("Shirt")
- knuckles1.Parent = char
- knuckles1.ShirtTemplate = shirt
- knuckles2 = Instance.new("Pants")
- knuckles2.Parent = char
- knuckles2.PantsTemplate = pants
- char = owner.Character
- jevilhat = Instance.new("Accessory", char)
- handle = Instance.new("Part")
- handle.Parent = jevilhat
- handle.Size = Vector3.new(1.38, 1.31, 1.5)
- hatattatchment = Instance.new("Attachment")
- hatattatchment.Parent = handle
- hatattatchment.Axis = Vector3.new(1, 0, 0)
- hatattatchment.SecondaryAxis = Vector3.new(0, 1, 0)
- hatattatchment.Position = Vector3.new(0, -0.2, -0.3)
- hatattatchment.WorldAxis = Vector3.new(0.995, -0, 0.096)
- hatattatchment.WorldOrientation = Vector3.new(-0.264, -5.525, -0.001)
- hatattatchment.WorldPosition = Vector3.new(0.007, 5.081, -8.3)
- hatattatchment.WorldSecondaryAxis= Vector3.new(0, 1, -0.005)
- hatattatchment.Name = "HatAttachment"
- originalsize = Instance.new("Vector3Value")
- originalsize.Value = Vector3.new(0, 1, -0.005)
- accessoryweld = Instance.new("Weld")
- accessoryweld.Parent = handle
- accessoryweld.Part0 = handle
- accessoryweld.Part1 = char.Head
- mesh = Instance.new("SpecialMesh")
- mesh.Parent = handle
- mesh.MeshType = "FileMesh"
- mesh.Scale = Vector3.new(1,1,1)
- mesh.MeshId = "rbxassetid://193760002"
- mesh.Offset = Vector3.new(0, 0.85, 0.31)
- mesh.TextureId = "rbxassetid://3050975223"
- char["Right Leg"].BrickColor = BrickColor.new("Baby blue")
- char["Left Leg"].BrickColor = BrickColor.new("Baby blue")
- char["Head"].BrickColor = BrickColor.new("Baby blue")
- char.Head.face.Texture = "rbxassetid://1111587497"
- hum.MaxHealth = 1000
- hum.Health = 1000
- ---------------------------------
- -------------Attacks-------------
- ---------------------------------
- mouse = game.Players.LocalPlayer:GetMouse()
- remote.OnServerEvent:Connect(function(Player, number, key)
- if number == 1 and plr.Name == Player.Name and attackd == false then
- if key == Enum.KeyCode.Z then
- sine = 0
- attackd = true
- normalanim = false
- hum.WalkSpeed = 10
- hum.JumpPower = 80
- for i = 1, 15 do
- game:GetService("RunService").Heartbeat:Wait()
- rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(1.2, 0, 0) + Vector3.new(0, -1.6, 0), 0.15)
- RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0, 1.1) + Vector3.new(0, 0, -0.3), 0.15)
- LS.C0 = LS.C0:Lerp(LSnor, 0.15)
- RH.C0 = RH.C0:Lerp(RHnor, 0.15)
- LH.C0 = LH.C0:Lerp(LHnor, 0.15)
- end
- for i = 1, 20 do
- game:GetService("RunService").Heartbeat:Wait()
- LS.C0 = LS.C0 * CFrame.Angles(0, 0, -0.06) + Vector3.new(0, 0, -0.03)
- end
- local banpart = Instance.new("Part", char)
- banpart.Size = Vector3.new(1, 1, 1)
- banpart.CanCollide = false
- banpart.Shape = "Ball"
- banpart.Material = "Neon"
- banpart.Position = owner.Character["Left Arm"].Position
- weld = Instance.new("Weld",banpart)
- weld.Part0 = banpart
- weld.Part1 = owner.Character["Left Arm"]
- for i = 1, 20 do
- game:GetService("RunService").Heartbeat:Wait()
- rootj.C0 = rootj.C0:Lerp(rootjnor, 0.15)
- RS.C0 = RS.C0:Lerp(RSnor, 0.15)
- LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0, 0, -4), 0.15)
- RH.C0 = RH.C0:Lerp(RHnor, 0.15)
- LH.C0 = LH.C0:Lerp(LHnor, 0.15)
- end
- throwbutton = true
- throw = true
- repeat game:GetService("RunService").Heartbeat:Wait()
- remote:FireClient(plr)
- until throw == false
- for i = 1, 15 do
- game:GetService("RunService").Heartbeat:Wait()
- LS.C0 = LS.C0:Lerp(LS.C0 * CFrame.Angles(0, 0, 0.01), i)
- end
- weld:Destroy()
- banpart.Parent = workspace
- banpart.CanCollide = true
- banpart.Velocity = char.HumanoidRootPart.CFrame.LookVector * 60
- banpart.Size = Vector3.new(10, 10, 10)
- local start = LS.C0
- for i = 1, 0, -1 / 15 do
- game:GetService("RunService").Heartbeat:Wait()
- LS.C0 = LSnor:Lerp(start, i * i)
- end
- normalanim = true
- attackd = false
- hum.WalkSpeed = 16
- hum.JumpPower = 50
- banpart.Touched:Connect(function(hit)
- if hit.Name == "Base" then
- else
- hit:Destroy()
- end
- end)
- spawn(function()
- wait(15)
- if banpart.Parent == workspace then
- banpart:Destroy()
- end
- end)
- end
- if key == Enum.KeyCode.X then
- attackd = true
- normalanim = false
- local bpart = Instance.new("Part", workspace)
- bpart.Size = Vector3.new(2.4, 3.5, 2.4)
- bpart.Locked = true
- bpart.CFrame = char.HumanoidRootPart.CFrame
- bpart.BrickColor = BrickColor.new("White")
- bpart.Transparency = 0.7
- local mesh = Instance.new("SpecialMesh", bpart)
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://2620904945"
- mesh.Scale = Vector3.new(1.1, 1.1, 1.1)
- local epart = Instance.new("Part", workspace)
- epart.Size = Vector3.new(10, 10, 10)
- epart.Material = "Neon"
- epart.CanCollide = false
- epart.Anchored = true
- epart.Locked = true
- epart.Shape = "Ball"
- epart.CFrame = char.HumanoidRootPart.CFrame
- epart.BrickColor = BrickColor.new("White")
- bpart.Transparency = 0.7
- epart.Size = epart.Size + Vector3.new(1, 1, 1)
- wait(0.00001)
- bpart.Transparency = 0.6
- epart.Size = epart.Size + Vector3.new(1, 1, 1)
- wait(0.00001)
- bpart.Transparency = 0.5
- epart.Size = epart.Size + Vector3.new(1, 1, 1)
- wait(0.00001)
- bpart.Transparency = 0.4
- epart.Size = epart.Size + Vector3.new(1, 1, 1)
- wait(0.00001)
- bpart.Transparency = 0.3
- epart.Size = epart.Size + Vector3.new(1, 1, 1)
- wait(0.00001)
- bpart.Transparency = 0.2
- epart.Size = epart.Size + Vector3.new(1, 1, 1)
- wait(0.00001)
- bpart.Transparency = 0.1
- epart.Size = epart.Size + Vector3.new(1, 1, 1)
- local explosion = Instance.new("Explosion", bpart)
- explosion.Position = bpart.Position
- explosion.BlastRadius = 100000
- local sound2 = Instance.new("Sound", bpart)
- sound2.SoundId = "rbxasset://sounds\\Rocket shot.wav"
- sound2.Volume = 5
- sound2:Play()
- bpart.CanCollide = false
- attackd = false
- wait(0.1)
- bpart:Destroy()
- epart:Destroy()
- normalanim = true
- end
- if key == Enum.KeyCode.C then
- sine = 0
- attackd = true
- normalanim = false
- hum.WalkSpeed = 0
- hum.JumpPower = 0
- for i = 1, 20 do
- game:GetService("RunService").Heartbeat:Wait()
- rootj.C0 = rootj.C0:Lerp(rootjnor, 0.15)
- RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0, 4), 0.15)
- LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(0, 0, -4), 0.15)
- RH.C0 = RH.C0:Lerp(RHnor, 0.15)
- LH.C0 = LH.C0:Lerp(LHnor, 0.15)
- end
- local tpart = Instance.new("Part", char)
- tpart.Size = Vector3.new(5.523, 6.19, 22.966)
- tpart.Anchored = true
- tpart.BrickColor = BrickColor.new("Royal purple")
- tpart.Material = "Neon"
- tpart.CanCollide = false
- tpart.CFrame = char["Right Arm"].CFrame * CFrame.Angles(math.pi, -math.pi / 2, 0) * CFrame.new(0, 4, 1)
- local mesh = Instance.new("SpecialMesh", tpart)
- wait(0.5)
- for i = 1, 15 do
- game:GetService("RunService").Heartbeat:Wait()
- RS.C0 = RS.C0:Lerp(RS.C0 * CFrame.Angles(0, 0, -0.01), i)
- LS.C0 = LS.C0:Lerp(LS.C0 * CFrame.Angles(0, 0, 0.01), i)
- RH.C0 = RH.C0:Lerp(RHnor, 0.15)
- LH.C0 = LH.C0:Lerp(LHnor, 0.15)
- tpart.CFrame = char["Right Arm"].CFrame * CFrame.Angles(math.pi, -math.pi / 2, 0) * CFrame.new(0, 4, 1)
- end
- tpart.Anchored = false
- tpart.Velocity = char.HumanoidRootPart.CFrame.LookVector * 100
- tpart.CanCollide = true
- tpart.Parent = workspace
- spawn(function()
- wait(0.3)
- tpart.Touched:Connect(function(hit)
- if hit.Size.X + hit.Size.Y + hit.Size.Z < 1000 then
- hit:BreakJoints()
- hit.Anchored = false
- hit.Velocity = tpart.Velocity
- end
- end)
- end)
- for i = 1, 20 do
- game:GetService("RunService").Heartbeat:Wait()
- rootj.C0 = rootj.C0:Lerp(rootjnor, 0.15)
- RS.C0 = RS.C0:Lerp(RSnor, 0.15)
- LS.C0 = LS.C0:Lerp(LSnor, 0.15)
- RH.C0 = RH.C0:Lerp(RHnor, 0.15)
- LH.C0 = LH.C0:Lerp(LHnor, 0.15)
- end
- attackd = false
- normalanim = true
- hum.WalkSpeed = 16
- hum.JumpPower = 50
- end
- if key == Enum.KeyCode.V then
- attackd = true
- normalanim = false
- bye = Instance.new("Sound",owner.Character.Head)
- bye.Playing = true
- bye.SoundId = "rbxassetid://2545211516"
- bye.Volume = 1000
- repeat
- local idleanim = Instance.new("Animation")
- idleanim.Name = "Roblox Idle Animation"
- idleanim.AnimationId = "http://www.roblox.com/asset/?id=180435571"
- local idleanimplay = hum:LoadAnimation(idleanim)
- idleanimplay:Play()
- for i = 1, 20 do
- game:GetService("RunService").Heartbeat:Wait()
- rootj.C0 = rootj.C0:Lerp(rootjnor, 0.15)
- RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(0, 0, -4), 0.15)
- LS.C0 = LS.C0:Lerp(LSnor, 0.15)
- RH.C0 = RH.C0:Lerp(RHnor, 0.15)
- LH.C0 = LH.C0:Lerp(LHnor, 0.15)
- end
- until bye.Playing == false
- attackd = false
- normalanim = true
- hum.WalkSpeed = 16
- hum.JumpPower = 50
- end
- elseif Player.Name == plr.Name and number == 2 and throw == true and throwbutton == true then
- throwbutton = false
- throw = false
- end
- end)
- ---------------------------------
- -----------Wrapping up-----------
- ---------------------------------
- while game:GetService("RunService").Heartbeat:Wait() do
- if normalanim then
- sine = sine + 1
- end
- if crabrave.Parent == char.Torso then
- crabrave.SoundId = "rbxassetid://2533880583"
- crabrave.Playing = true
- crabrave.Volume = 1
- crabrave.Looped = true
- timepos = crabrave.TimePosition
- else
- crabrave = Instance.new("Sound", char.Torso)
- crabrave.TimePosition = timepos
- end
- if remote.Parent == char then
- remote.Name = "ReplicationEvent"
- else
- remote = Instance.new("RemoteEvent", char)
- end
- local touchfloor = workspace:FindPartOnRay(Ray.new(char.HumanoidRootPart.CFrame.Position, ((CFrame.new(char.HumanoidRootPart.Position, char.HumanoidRootPart.Position - Vector3.new(0, 1, 0))).LookVector).Unit * 4), char)
- if char.HumanoidRootPart.Velocity.Magnitude > 1 and touchfloor then
- animpose = "Walking"
- elseif char.HumanoidRootPart.Velocity.Y > 0.5 and touchfloor == nil then
- animpose = "Jumping"
- elseif char.HumanoidRootPart.Velocity.Y < 0.5 and touchfloor == nil then
- animpose = "Falling"
- else
- animpose = "Idle"
- end
- if animpose == "Idle" and normalanim then
- text.Text = "J҉ E҉ V҉ I҉ L҉ HEALTH: " ..owner.Character.Humanoid.Health .. " / " ..owner.Character.Humanoid.MaxHealth
- RS.C0 = RSnor * CFrame.Angles(0, 0, 1 + math.sin(sine / 5))
- LS.C0 = LSnor * CFrame.Angles(0, 0, -1 + math.sin(sine / 5))
- RH.C0 = RH.C0:Lerp(RHnor, 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0)
- LH.C0 = LH.C0:Lerp(LHnor, 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0)
- rootj.C0 = rootjnor * CFrame.new(math.sin(sine / 10) / 2, 0, math.sin(sine / 5) / 2)
- elseif animpose == "Walking" and normalanim then
- text.Text = "J҉ E҉ V҉ I҉ L҉ HEALTH: " ..owner.Character.Humanoid.Health .. " / " ..owner.Character.Humanoid.MaxHealth
- RS.C0 = RSnor * CFrame.Angles(0, 0, 1 + math.sin(sine / 5))
- LS.C0 = LSnor * CFrame.Angles(0, 0, -1 + math.sin(sine / 5))
- RH.C0 = RH.C0:Lerp(RHnor, 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0)
- LH.C0 = LH.C0:Lerp(LHnor, 0.1) - Vector3.new(0, rootj.C0.Position.Y / 10, 0)
- rootj.C0 = rootjnor * CFrame.new(math.sin(sine / 10) / 2, 0, math.sin(sine / 5) / 2)
- elseif animpose == "Jumping" and normalanim then
- text.Text = "J҉ E҉ V҉ I҉ L҉ HEALTH: " ..owner.Character.Humanoid.Health .. " / " ..owner.Character.Humanoid.MaxHealth
- rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(-0.5, 0, 0), 0.15)
- RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.3, 0, 0), 0.15)
- LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.3, 0, 0), 0.15)
- RH.C0 = RH.C0:Lerp(RHnor, 0.15)
- LH.C0 = LH.C0:Lerp(LHnor, 0.15)
- elseif animpose == "Falling" and normalanim then
- text.Text = "J҉ E҉ V҉ I҉ L҉ HEALTH: " ..owner.Character.Humanoid.Health .. " / " ..owner.Character.Humanoid.MaxHealth
- rootj.C0 = rootj.C0:Lerp(rootjnor * CFrame.Angles(0.5, 0, 0), 0.15)
- RS.C0 = RS.C0:Lerp(RSnor * CFrame.Angles(-0.6, 0, 0), 0.15)
- LS.C0 = LS.C0:Lerp(LSnor * CFrame.Angles(-0.6, 0, 0), 0.15)
- RH.C0 = RH.C0:Lerp(RHnor, 0.15)
- LH.C0 = LH.C0:Lerp(LHnor, 0.15)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement