Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr =owner
- local chr = plr.Character
- local maus = plr:GetMouse()
- local PGui=plr.PlayerGui
- local lleg = chr["Left Leg"]
- local rleg = chr["Right Leg"]
- local larm = chr["Left Arm"]
- local rarm = chr["Right Arm"]
- local hed = chr.Head
- local rutprt = chr.HumanoidRootPart
- local torso = chr.Torso
- local otheranims=false
- local armmovement=false
- local hitdb=false
- local toss=false
- local jamp=false
- chr.Animate.Disabled=true
- chr.Humanoid.WalkSpeed=10
- local running=false
- local tempignore={}
- if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility by WaverlyCole & Fireboltofdeath");print("https://github.com/WaverlyCole/FE-Compatibility-VoidSb-")
- local Wrapper = {};Wrapper.Fake = {};Wrapper.Real = {};Wrapper.Data = {};
- local sGame = game;local sScript = script;local sOwner = owner;local sInstance = Instance;local sLoadLibrary = LoadLibrary
- Wrapper.Event = Instance.new("RemoteEvent");Wrapper.Event.Name = "UserInput";
- Wrapper.CreateObject = function(connections, index)
- local proxy = newproxy (true);local meta = getmetatable (proxy);
- local runbind = function (self, i, ...) connections[i]:Fire (...); end;
- while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
- meta.__index = function (self, i)
- if (i == 'TriggerEvent') then return runbind end;
- return connections[i] and connections[i].Event or index[i];
- end;
- meta.__newindex = index;meta.__metatable = false;return proxy
- end;
- Wrapper.Mouse = Wrapper.CreateObject({"KeyUp","KeyDown","Button1Down","Button1Up","Move","Button2Down","Button2Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
- Wrapper.UserInputService = Wrapper.CreateObject({"InputBegan","InputEnded"},{})
- Wrapper.ContextActionService = {Actions={};BindAction = function(self,actionName,Func,touch,...)self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil end;UnBindAction = function(self,actionName,Func,touch,...)self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil end};
- Wrapper.Sandbox = function(...)
- local Unwrap = {...};
- for obi = 1,#Unwrap do
- local Object = Unwrap[obi];
- if (Wrapper.Fake[Object] == nil and Wrapper.Real[Object] == nil) then
- local Type = typeof(Object);local Replacement = Object;
- if (Type == "function") then
- Replacement = function(...)
- local IsRoblox = not (pcall(function() string.dump(Object) end))
- if IsRoblox then
- return Object(Wrapper.Unsandbox(...))
- end
- return Object(Wrapper.Sandbox(...))
- end
- elseif (Type == "table") then
- Replacement = {};
- setmetatable(Replacement, {
- __index = function(self, i)
- return Wrapper.Sandbox(Object[Wrapper.Unsandbox(i)])
- end,
- __newindex = function(self,i,v)
- Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v)
- end;
- })
- elseif (Type == "Instance") then
- Replacement = newproxy(true);
- local Mt = getmetatable(Replacement);
- Mt.__namecall = function(self, ...)
- local Pack = {...};local Name = Pack[#Pack];table.remove(Pack, #Pack);
- local Rest = nil;pcall(function()Rest = Object[Name];end);
- for g, x in pairs (Wrapper.InstanceMT["GET"]) do
- if (Object:IsA(g) or g == "Global") then
- for t, v in pairs(x) do
- for str in string.gmatch(t .. ",", "(%w+),") do
- if (Name == str) then
- if typeof(v) == "function" then
- return Wrapper.Sandbox(v(Wrapper.Unsandbox(self), Wrapper.Unsandbox(unpack(Pack))))
- else
- return v;
- end
- end
- end
- end
- end
- end
- if (Rest == nil) then
- if Wrapper.Sandbox(sGame):GetService(unpack(Pack)) then return Wrapper.Sandbox(sGame):GetService(unpack(Pack))end;
- return Wrapper.Sandbox(Object[Name]);
- elseif (typeof(Rest) == "function") then
- return Wrapper.Sandbox(Rest(Wrapper.Unsandbox(self), Wrapper.Unsandbox(unpack(Pack))))
- end
- return Wrapper.Sandbox(Object[Name]);
- end
- Mt.__index = function(self, i)
- local Rest = nil;pcall(function()Rest = Object[i];end)
- for g, x in pairs (Wrapper.InstanceMT["GET"]) do
- if (Object:IsA(g) or g == "Global") then
- for t, v in pairs(x) do
- for str in string.gmatch(t .. ",", "(%w+),") do
- if (i == str) then
- if typeof(v) == "function" then
- return function(...)return Wrapper.Sandbox(v(Wrapper.Unsandbox(self), Wrapper.Unsandbox(...)))end;
- else
- return v;
- end
- end
- end
- end
- end
- end
- if (Object:IsA("Sound") and i == "PlaybackLoudness") then return Wrapper.SoundLoudness[Wrapper.Unsandbox(Object)];end;
- if (Rest == nil) then
- if Wrapper.Sandbox(sGame):GetService(i) then return Wrapper.Sandbox(sGame):GetService(i)end;
- return Wrapper.Sandbox(Object[i]);
- elseif (typeof(Rest) == "function") then
- local isService,Service = pcall(function() return sGame:GetService(i) end)
- if isService and Service then return Wrapper.Sandbox(Service) end
- return function(self, ...)
- return Wrapper.Sandbox(Rest(Wrapper.Unsandbox(self), Wrapper.Unsandbox(...)))
- end
- end
- return Wrapper.Sandbox(Object[i]);
- end
- Mt.__newindex = function(self, i, v)
- for g,x in pairs (Wrapper.InstanceMT["SET"]) do
- if (Object:IsA(g)) then
- for t, v in pairs(x) do
- for str in string.gmatch( t .. ",", "(%w+),") do
- if v(Wrapper.Unsandbox(self, i, v)) == true then
- Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v);return
- end
- end
- end
- end
- end
- Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v);
- end
- Mt.__tostring = function(self) return tostring(Object) end
- --elseif (Type == "") then -- Etc
- end
- Wrapper.Fake[Object] = Replacement;Wrapper.Real[Replacement] = Object;Unwrap[obi] = Replacement;
- else
- return Wrapper.Fake[Object] or Object;
- end
- end
- return unpack(Unwrap);
- end
- Wrapper.Unsandbox = function(...)
- local Unsandbox = {...};
- for i,v in pairs (Unsandbox) do Unsandbox[i] = Wrapper.Real[v] or Unsandbox[i]end;
- return unpack(Unsandbox)
- end
- Wrapper.Services = {
- ['contextactionservice'] = Wrapper.ContextActionService;
- ["userinputservice"] = Wrapper.UserInputService;
- }
- Wrapper.InstanceMT = {
- ["GET"] = {
- ["Global"] = {
- ["IsFake,isFake"] = function(self)return true;end;
- };
- ["Player"] = {
- ["mouse,Mouse,getMouse,GetMouse"] = function(self)return Wrapper.Mouse;end;
- };
- ["Players"] = {
- ["localPlayer,LocalPlayer"] = Wrapper.Sandbox(owner)
- };
- ["DataModel"] = {
- ["getService,GetService"] = function(self,service)
- if Wrapper.Services[service:lower()] then return Wrapper.Sandbox(Wrapper.Services[service:lower()])end;
- return Wrapper.Sandbox(sGame:GetService(service))
- end
- };
- ["RunService"] = {
- ["renderstepped,renderStepped,RenderStepped"] = sGame:GetService("RunService").Stepped;
- }
- };
- ["SET"] = {
- }
- }
- Wrapper.SoundLoudness = {};
- Wrapper.Event.OnServerEvent:Connect(function(FiredBy,Input)
- if FiredBy ~= sOwner then return end
- if Input.MouseEvent then
- Wrapper.Mouse.Target = Input.Target;Wrapper.Mouse.Hit = Input.Hit;Wrapper.Mouse:TriggerEvent("Move")
- elseif Input.Sound then
- if Wrapper.SoundLoudness[Input.Sound] then Wrapper.SoundLoudness[Input.Sound] = Input.Loudness end
- else
- local Begin = Input.UserInputState == Enum.UserInputState.Begin
- if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Wrapper.Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
- if Input.UserInputType == Enum.UserInputType.MouseButton2 then return Wrapper.Mouse:TriggerEvent(Begin and "Button2Down" or "Button2Up") end
- for _,Action in pairs(Wrapper.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
- Wrapper.Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());Wrapper.UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
- end
- end);
- Wrapper.Event.Parent = NLS([[
- local Player = owner;local Sounds = {};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
- Event.OnClientEvent:connect(function(Args)
- if Args[1] == "NewSound" and Args[2]:IsA("Sound") then table.insert(Sounds,Args[2]) end
- end)
- UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
- local Hit,Target;while wait(1/30) do
- for x,Sound in pairs(Sounds) do if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end; end;
- if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
- Hit = Mouse.Hit;Target = Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
- end
- end]],sOwner.Character)
- Instance = {
- ["new"] = function(Type,Parent)
- local Real = sInstance.new(Type,Wrapper.Unsandbox(Parent))
- if Type:lower() == "sound" then
- if not Parent then
- Parent = sOwner.Character
- end
- Wrapper.SoundLoudness[Real] = 0;Wrapper.Event:FireClient(sOwner,{"NewSound",Real})
- end
- return Wrapper.Sandbox(Real)
- end
- }
- LoadLibrary = function(Library)
- if Library == "RbxUtility" then
- return setmetatable({},{
- __tostring = function() return "RbxUtility" end;
- __index = function(self, Index)
- if Index:lower() == "create" then
- return function(Type) return function(Data)
- Data = Data or {};local Inst = Instance.new(Type)
- for x,y in pairs(Data) do Inst[x] = y end
- return Inst
- end;end;
- end
- return sLoadLibrary(Library)[Index]
- end})
- end
- return sLoadLibrary(Library)
- end
- owner = Wrapper.Sandbox(owner);game = Wrapper.Sandbox(game)workspace = Wrapper.Sandbox(workspace)
- Game= game;Workspace = workspace;
- --//Paste script below this line.
- local weit=Instance.new('Part',hed)
- weit.Shape='Ball'
- weit.BrickColor=BrickColor.new('Black')
- weit.Material='Neon'
- weit.Size=Vector3.new(3,3,3)
- weit.CanCollide=true
- weit.Name='Weight'
- weit.Friction=1
- weit.Elasticity=0
- local at1=Instance.new("Attachment",torso)
- local at2=Instance.new("Attachment",weit)
- local const=Instance.new("RopeConstraint",chr)
- const.Attachment0=at2
- const.Attachment1=at1
- const.Visible=true
- const.Restitution=0
- const.Length=100
- local pseudohead=hed:Clone()
- for i,x in pairs(pseudohead:GetChildren()) do if not x.ClassName:find('Mesh') then x:Destroy() end end
- pseudohead.Name='PseudoHead'
- pseudohead.Parent=chr.Head
- local pseudoweld=Instance.new('Weld',torso)
- pseudoweld.Part0=hed
- pseudoweld.Name='PseudoHedWld'
- pseudoweld.Part1=pseudohead
- hed.Transparency=1
- --[[coroutine.resume(coroutine.create(function()
- local rate=.05
- local Hats={}
- for i,x in pairs(chr:GetChildren()) do if x:IsA("Hat") then table.insert(Hats,x) x.Handle.Mesh.TextureId="http://www.roblox.com/asset?id=25701026"
- end
- end
- local lam=Instance.new("SpecialMesh",larm)
- lam.MeshId="http://www.roblox.com/asset?id=12221505"
- lam.TextureId="http://www.roblox.com/asset?id=25701026"
- local ram=Instance.new("SpecialMesh",rarm)
- ram.MeshId="http://www.roblox.com/asset?id=12221505"
- ram.TextureId="http://www.roblox.com/asset?id=25701026"
- local rlm=Instance.new("SpecialMesh",rleg)
- rlm.MeshId="http://www.roblox.com/asset?id=12221626"
- rlm.TextureId="http://www.roblox.com/asset?id=25701026"
- local llm=Instance.new("SpecialMesh",lleg)
- llm.MeshId="http://www.roblox.com/asset?id=12221626"
- llm.TextureId="http://www.roblox.com/asset?id=25701026"
- local trm=Instance.new("SpecialMesh",torso)
- trm.MeshId="http://www.roblox.com/asset?id=12221758"
- trm.TextureId="http://www.roblox.com/asset?id=25701026"
- local hem=Instance.new("SpecialMesh",hed)
- hem.MeshId="rbxasset://fonts/head.mesh"
- hem.TextureId="http://www.roblox.com/asset?id=25701026"
- local hem2=Instance.new("SpecialMesh",pseudohead)
- hem2.MeshId="rbxasset://fonts/head.mesh"
- hem2.TextureId="http://www.roblox.com/asset?id=25701026"
- local weitmesh=Instance.new("SpecialMesh",weit)
- weitmesh.MeshId="http://www.roblox.com/asset/?id=1527559"
- weitmesh.TextureId="http://www.roblox.com/asset?id=25701026"
- local asd=Instance.new('PointLight',torso)
- asd.Brightness=123
- asd.Range=12
- asd.Shadows=true
- while wait'0' do
- for a=0,1,rate do
- lam.VertexColor=Vector3.new(a,0,-a+1)
- ram.VertexColor=Vector3.new(a,0,-a+1)
- rlm.VertexColor=Vector3.new(a,0,-a+1)
- llm.VertexColor=Vector3.new(a,0,-a+1)
- trm.VertexColor=Vector3.new(a,0,-a+1)
- hem.VertexColor=Vector3.new(a,0,-a+1)
- hem2.VertexColor=Vector3.new(a,0,-a+1)
- weitmesh.VertexColor=Vector3.new(a,0,-a+1)
- asd.Color=Color3.new(a,0,-a+1)
- coroutine.wrap(function()
- for x=1,#Hats do
- Hats[x].Handle.Mesh.VertexColor=Vector3.new(a,0,-a+1)
- end
- end)()
- wait''
- end
- for a=0,1,rate do
- lam.VertexColor=Vector3.new(-a+1,a,0)
- ram.VertexColor=Vector3.new(-a+1,a,0)
- rlm.VertexColor=Vector3.new(-a+1,a,0)
- llm.VertexColor=Vector3.new(-a+1,a,0)
- trm.VertexColor=Vector3.new(-a+1,a,0)
- hem.VertexColor=Vector3.new(-a+1,a,0)
- hem2.VertexColor=Vector3.new(-a+1,a,0)
- weitmesh.VertexColor=Vector3.new(-a+1,a,0)
- asd.Color=Color3.new(-a+1,a,0)
- coroutine.wrap(function()
- for x=1,#Hats do
- Hats[x].Handle.Mesh.VertexColor=Vector3.new(-a+1,a,0)
- end
- end)()
- wait''
- end
- for a=0,1,rate do
- lam.VertexColor=Vector3.new(0,-a+1,a)
- ram.VertexColor=Vector3.new(0,-a+1,a)
- rlm.VertexColor=Vector3.new(0,-a+1,a)
- llm.VertexColor=Vector3.new(0,-a+1,a)
- trm.VertexColor=Vector3.new(0,-a+1,a)
- hem.VertexColor=Vector3.new(0,-a+1,a)
- hem2.VertexColor=Vector3.new(0,-a+1,a)
- weitmesh.VertexColor=Vector3.new(0,-a+1,a)
- asd.Color=Color3.new(0,-a+1,a)
- coroutine.wrap(function()
- for x=1,#Hats do
- Hats[x].Handle.Mesh.VertexColor=Vector3.new(0,-a+1,a)
- end
- end)()
- wait''
- end
- end
- end))]]
- function Lerp(a, b, i)
- local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
- local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
- local calx = com1[1] + (com2[1] - com1[1]) * i
- local caly = com1[2] + (com2[2] - com1[2]) * i
- local calz = com1[3] + (com2[3] - com1[3]) * i
- local cala = com1[4] + (com2[4] - com1[4]) * i
- local calb = com1[5] + (com2[5] - com1[5]) * i
- local calc = com1[6] + (com2[6] - com1[6]) * i
- return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
- end
- function TwnSingleNumber(s,f,m)
- local wot=s+(f-s)*m
- return wot
- end
- function TwnVector3(q,w,e)
- local begin={q.x,q.y,q.z}
- local ending={w.x,w.y,w.z}
- local bgx=begin[1]+(ending[1]-begin[1])*e
- local bgy=begin[2]+(ending[2]-begin[2])*e
- local bgz=begin[3]+(ending[3]-begin[3])*e
- return Vector3.new(bgx,bgy,bgz)
- end
- newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z)
- wld = Instance.new("Weld", wp1)
- wld.Part0 = wp0
- wld.Part1 = wp1
- wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
- end
- newWeld(law, torso, larm, -1.5, 0.5, 0)
- newWeld(raw, torso, rarm, 1.5, 0.5, 0)
- newWeld(llw, torso, lleg, -.5, -2, 0)
- newWeld(rlw, torso, rleg, .5, -2, 0)
- newWeld(hw, torso, hed, 0, 1.5, 0)
- larm.Weld.C1 = CFrame.new(0, 0.5, 0)
- rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
- rleg.Weld.C1=CFrame.new(0,.25,.05)*CFrame.Angles(math.rad(30),0,0)
- lleg.Weld.C1=CFrame.new(0,.25,.05)*CFrame.Angles(math.rad(30),0,0)
- local anim = "Idling"
- local lastanim = "Idling"
- local val = 0
- local syne = 0
- local num = 0
- local runtime = 0
- maus.KeyUp:connect(function(kei)
- if string.byte(kei)==48 and not otheranims then
- running=false
- chr.Humanoid.WalkSpeed=10
- end
- end)
- maus.KeyDown:connect(function(kei)
- if string.byte(kei)==48 and not otheranims then
- running=true
- chr.Humanoid.WalkSpeed=18
- end
- chr.Humanoid.Changed:connect(function(ch)
- if ch=='Jump' and not chr.Humanoid.Sit and not chr.Humanoid.PlatformStand then
- local rei=Ray.new(torso.CFrame.p,((torso.CFrame*CFrame.new(0,-1,0)).p-torso.CFrame.p).unit*10)
- local t,p=Workspace:FindPartOnRay(rei,chr)
- if t then
- chr.Humanoid.Jump=false
- end
- end
- end)
- if kei==' ' and not chr.Humanoid.Jump and not chr.Humanoid.Sit and not chr.Humanoid.PlatformStand and not jamp then
- local rei=Ray.new(torso.CFrame.p,((rutprt.CFrame*CFrame.new(0,-1,0)).p-rutprt.CFrame.p).unit*3)
- local t,p=Workspace:FindPartOnRay(rei,chr)
- if t then
- chr.Humanoid.PlatformStand=true
- jamp=true
- coroutine.wrap(function()
- repeat wait()
- chr.Torso.Velocity=Vector3.new(0,35,0)
- until not chr.Humanoid.PlatformStand
- end)()
- wait(.1)
- chr.Humanoid.PlatformStand=false
- jamp=false
- end
- end
- end)
- local grunt=Instance.new('Sound',hed)
- grunt.Name='Grunt'
- grunt.Volume=1
- grunt.Pitch=.9
- grunt.Looped=false
- grunt.SoundId="http://www.roblox.com/asset?id=143384769"
- local hut=Instance.new('Sound',weit)
- hut.Name='Hit'
- hut.Volume=1
- hut.Looped=false
- hut.Pitch=1
- hut.SoundId="http://www.roblox.com/asset?id=146163534"
- local wtl=Instance.new('PointLight',weit)
- wtl.Shadows=true
- wtl.Brightness=123
- wtl.Range=12
- wtl.Color=weit.BrickColor.Color
- wtl.Name='WeightLight'
- local wgui=Instance.new('SurfaceGui',weit)
- wgui.Face='Front'
- wgui.Adornee=weit
- wgui.CanvasSize=Vector2.new(100,100)
- wgui.Name='WeightGui'
- local tb=Instance.new('TextLabel',wgui)
- tb.Size=UDim2.new(1,0,1,0)
- tb.Text=[[LAWL'D]]
- tb.TextColor3=Color3.new(1,1,1)
- tb.BackgroundTransparency=1
- local wtw=Instance.new('Weld',torso)
- wtw.Name='WeightWeld'
- wtw.Part0=torso
- wtw.Part1=weit
- wtw.C0=CFrame.new(0,.5,-1.8)*CFrame.Angles(math.rad(-20),0,0)
- weit.Touched:connect(function(hit)
- if hit and hit.CanCollide and hit.Parent and hit.Parent~=chr and hit.Parent.Parent~=chr and otheranims then
- hum=hit.Parent:findFirstChild('Humanoid') and hit.Parent:findFirstChild('Torso') and hit.Parent.ClassName=='Model'
- if hum and not hitdb then
- local ex=Instance.new('Explosion',workspace)
- ex.DestroyJointRadiusPercent=0
- ex.BlastPressure=222222
- ex.BlastRadius=18
- hitdb=true
- ex.Position=hit.Parent.Torso.Position
- hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-(101*(hit.Parent.Humanoid.MaxHealth/100))
- table.insert(tempignore,hit.Parent)
- hut:Play()
- toss=false
- hit.Parent.Humanoid.PlatformStand=true
- coroutine.wrap(function()
- repeat wait()
- hit.Parent.Torso.Velocity=((hit.Parent.Torso.CFrame.p*Vector3.new(1,0,1))-(weit.CFrame.p*Vector3.new(1,0,1))).unit*100
- weit.Velocity=((hit.Parent.Torso.CFrame.p*Vector3.new(1,0,1))-(weit.CFrame.p*Vector3.new(1,0,1))).unit*-10+Vector3.new(0,20,0)
- until not hit.Parent.Humanoid.PlatformStand
- end)()
- wait(.2)
- hit.Parent.Humanoid.PlatformStand=false
- end
- end
- end)
- maus.Button1Down:connect(function()
- if not otheranims then
- chr.Humanoid.WalkSpeed=0
- otheranims=true
- anim='PreThrow'
- hitdb=false
- coroutine.resume(coroutine.create(function()
- for fgh,hgf in pairs(tempignore) do
- table.remove(tempignore,hgf)
- end
- end))
- wait(.3)
- grunt:Play()
- wait(.2)
- anim='Throw'
- const.Parent=nil
- wtw.Parent=nil
- wtw.Part0=nil
- toss=true
- weit.CFrame=rutprt.CFrame*CFrame.new(0,3,-3)
- wait()
- weit.Velocity=((rutprt.CFrame.p*Vector3.new(1,0,1))-(weit.CFrame.p*Vector3.new(1,0,1))).unit*-200+Vector3.new(0,12,0)
- wait(.25)
- const.Parent=chr
- anim='Rest'
- wait(1)
- wtw.Parent=torso
- wtw.Part0=torso
- otheranims=false
- chr.Humanoid.WalkSpeed=10
- toss=false
- end
- end)
- -----------------------------------------------------------------------------
- game:service'RunService'.RenderStepped:connect(function()
- chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0)
- syne=syne+.95
- if running and not otheranims then chr.Humanoid.WalkSpeed=18
- elseif not running and not otheranims then chr.Humanoid.WalkSpeed=10
- end
- if not otheranims then
- if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and torso.Velocity.y<1 and torso.Velocity.y>-1 then
- anim="Idling"
- elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude < 12 and torso.Velocity.y<1 and torso.Velocity.y>-1 then
- anim="Walking"
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 12 and torso.Velocity.y<1 and torso.Velocity.y>-1 then
- anim="Sprinting"
- elseif torso.Velocity.y>1 then
- anim='Jumping'
- elseif (torso.Velocity.y < -1) then
- anim='Falling'
- end
- end
- if anim=="Idling" then if not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(-12.5)),.05)
- end
- wtw.C0=Lerp(wtw.C0,CFrame.new(0,.375,-1.7)*CFrame.Angles(math.rad(-20),0,0),.25)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(12.5)),.05)
- lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,-1.3,.35)*CFrame.Angles(math.rad(-7),0,math.rad(-2.5)),.05)
- rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,-1.3,.35)*CFrame.Angles(math.rad(-7),0,math.rad(2.5)),.05)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),0,math.cos(syne/30)/25),.05)
- rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/40)/15-.5,0)*CFrame.Angles(math.rad(125),math.rad(180),0),.05)
- end
- if anim=="Walking" then if not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(-12.5)),.05)
- end
- wtw.C0=Lerp(wtw.C0,CFrame.new(0,.375,-1.8)*CFrame.Angles(math.rad(-20),0,0),.25)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(12.5)),.05)
- lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,(math.cos(syne/10))-1.3,(math.cos(syne/10))+.475)*CFrame.Angles((math.cos(syne/10))*-1,0,math.rad(-2.5)),.05)
- rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,(math.cos(syne/10))*-1-1.3,(math.cos(syne/10))*-1+.475)*CFrame.Angles((math.cos(syne/10)),0,math.rad(2.5)),.05)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.cos(syne/10)/10*-1,math.cos(syne/10)/20),.05)
- rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/6)/4-.5,0)*CFrame.Angles(math.rad(125),math.cos(syne/10)/10+math.rad(180),0),.05)
- end
- if anim=="Sprinting" then if not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(-12.5)),.05)
- end
- wtw.C0=Lerp(wtw.C0,CFrame.new(0,.375,-1.8)*CFrame.Angles(math.rad(-20),0,0),.25)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(67),0,math.rad(12.5)),.05)
- lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,(math.cos(syne/7))-1.3,(math.cos(syne/7))+.475)*CFrame.Angles((math.cos(syne/7))*-1,0,math.rad(-2.5)),.05)
- rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,(math.cos(syne/7))*-1-1.3,(math.cos(syne/7))*-1+.475)*CFrame.Angles((math.cos(syne/7)),0,math.rad(2.5)),.05)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.cos(syne/7)/7*-1,math.cos(syne/7)/20),.05)
- rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/6)/4-.5,0)*CFrame.Angles(math.rad(125),math.cos(syne/7)/7+math.rad(180),0),.05)
- end
- if anim=="Jumping" then if not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(30),0,math.rad(30)),.15)
- end
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(30),0,math.rad(-30)),.15)
- lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.85,1)*CFrame.Angles(0,0,math.rad(-2.5)),.05)
- rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.85,1)*CFrame.Angles(0,0,math.rad(2.5)),.05)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),0,0),.05)
- rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/50)/20,.5)*CFrame.Angles(math.rad(75),math.rad(180),math.rad(0)),.05)
- end
- if anim=="Falling" then if not armmovement then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.425,.525,0)*CFrame.Angles(math.cos(syne/10)/5+math.rad(120),0,math.rad(22.5)),.15)
- end
- wtw.C0=Lerp(wtw.C0,CFrame.new(0,1.25,-2.25)*CFrame.Angles(math.cos(syne/20)/20,math.cos(syne/10)/30,0),.25)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.425,.525,0)*CFrame.Angles((math.cos(syne/10)/5)*-1+math.rad(120),0,math.rad(-22.5)),.15)
- lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.725,-1.5,-.3)*CFrame.Angles(math.cos(syne/10)/5+math.rad(33),0,math.rad(-15)),.05)
- rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.725,-1.5,-.3)*CFrame.Angles(math.cos(syne/10)/5*-1+math.rad(33),0,math.rad(15)),.05)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),0,0),.05)
- rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,0,1)*CFrame.Angles(math.rad(125),math.rad(180),math.rad(0)),.05)
- end
- if anim=="PreThrow" then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.5,-.225)*CFrame.Angles(math.rad(105),0,math.rad(-12.5)),.1)
- wtw.C0=Lerp(wtw.C0,CFrame.new(0,1,-2)*CFrame.Angles(math.rad(-10),0,0),.1)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(105),0,math.rad(12.5)),.1)
- lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,-1.3,.3)*CFrame.Angles(math.rad(-10),0,math.rad(-2.5)),.1)
- rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,-1.3,.3)*CFrame.Angles(math.rad(-10),0,math.rad(2.5)),.1)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(40),0,0),.1)
- rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/40)/15-.5,0)*CFrame.Angles(math.rad(132.5),math.rad(180),0),.1)
- end
- if anim=="Throw" then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.6,-.225)*CFrame.Angles(math.rad(105),0,math.rad(-12.5)),.1)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(105),0,math.rad(12.5)),.1)
- lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,-1.3,0)*CFrame.Angles(math.rad(40),0,math.rad(-2.5)),.1)
- rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,-1.3,0)*CFrame.Angles(math.rad(40),0,math.rad(2.5)),.1)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5),0,0),.1)
- rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/40)/15-.5,0)*CFrame.Angles(math.rad(75),math.rad(180),0),.1)
- end
- if anim=="Rest" then
- rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.35,.55,-.225)*CFrame.Angles(math.rad(35),0,math.rad(-12.5)),.1)
- larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.35,.425,-.225)*CFrame.Angles(math.rad(35),0,math.rad(12.5)),.1)
- lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.525,-.85,-.25)*CFrame.Angles(math.rad(40),0,math.rad(-2.5)),.1)
- rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.525,-.85,-.25)*CFrame.Angles(math.rad(40),0,math.rad(2.5)),.1)
- hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-5),0,0),.1)
- rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,math.cos(syne/40)/15-1,0)*CFrame.Angles(math.rad(75),math.rad(180),0),.1)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement