Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print('https://pastebin.com/raw/UdhzTMkH');
- print('By SoftlockedUnderZero / Semicolon abuser');
- print('E = Hold out staff. (Kinda bad when you swing it)');
- print('F = Throw a .. I forgot what its called')
- local function I_Robbed_Robins_Gear(player)
- local places = {843495510,843468296,897312463}
- local re,rf
- for _,v in pairs(places)do
- if game.PlaceId==v then
- pcall(function()
- local function Get_Components_Of_Mouse(player)
- local pchar = player.Character
- if pchar then
- local Remote = pchar:FindFirstChild('RE_Mouse')or
- Instance.new("RemoteEvent",pchar);
- local RF = pchar:FindFirstChild('RF_Mouse')or
- Instance.new("RemoteFunction",pchar);
- Remote.Name = 'RE_Mouse';RF.Name='RF_Mouse'
- Remote.Parent = NLS(
- [[
- local lp,re,rf =
- game:GetService("Players").LocalPlayer,script:WaitForChild('RE_Mouse'),
- script:WaitForChild('RF_Mouse');
- local mouse = lp:GetMouse();
- mouse.KeyDown:Connect(function(k)
- re:FireServer('KD',k,mouse.Hit,mouse.Target)
- end);
- mouse.Button1Down:Connect(function()
- re:FireServer('MB_Down',mouse.Hit,mouse.Target)
- end)
- rf.OnClientInvoke = function(...)
- local args = {...}
- if args[1]=='Get_Mouse_CF'then return mouse.Hit;
- elseif args[1]=='Get_Mouse_Target'then return mouse.Target;
- end
- end;
- ]]
- ,pchar)
- RF.Parent=Remote.Parent
- return Remote,RF
- else
- error('Best to actually put your character In the game.')
- end
- end
- re,rf = Get_Components_Of_Mouse(player);
- repeat wait(1);until re and rf;
- end)
- end;
- end;
- if not re and not rf then
- re,rf = script:WaitForChild('LocalScript'):WaitForChild'RemoteEvent',
- script:WaitForChild('LocalScript'):WaitForChild'RemoteFunction';
- end;
- local New_Instance = function(Classname,Props)
- if not Classname or typeof(Classname)~='string'or not Props then
- error'Invalid arguments';end;
- local a = Instance.new(Classname);for i,v in pairs(Props)do
- local _,e=pcall(function()a[i]=v;end)if e then print(e)end;
- end;a.Parent=Props.Parent or workspace;return a;end;
- local Instance_2 = {
- new = New_Instance,Get_Part = function(Props)
- Props.Massless = (Props.Massless==nil and true)or Props.Massless;
- Props.CanCollide = (Props.CanCollide==nil and false)or Props.CanCollide;
- return New_Instance('Part',Props);end,
- Weld = function(props)return New_Instance('Weld',props)end,}
- Instance_2.Get_SM_Part = function(Part_Props,SM_Props)
- local part = Instance_2.Get_Part(Part_Props);
- if not SM_Props.Parent then SM_Props.Parent=part;end;
- local sm = Instance_2.new('SpecialMesh',SM_Props);return part;
- end
- Instance_2.Get_Wedge = function(Part_Props)
- Part_Props.Massless = (not Part_Props.Massless and true)or Part_Props.Massless;
- local part = Instance_2.new('WedgePart',Part_Props);return part
- end
- local function Get_New_Motor(rig,Instance_variant_1,type_)
- local Old_M6D;
- local function Error_Msg(Res)print('Failed to load: '..Res);end;
- if rig and Instance_variant_1 then
- if typeof(rig)=='Instance'and typeof(Instance_variant_1)=='Instance'then
- local torso = rig:FindFirstChild'Torso';
- if torso then
- if Instance_variant_1:IsA'Motor6D'then
- Old_M6D = Instance_variant_1;
- elseif Instance_variant_1:IsA'BasePart'then
- for _,v in pairs(torso:GetChildren())do
- if v:IsA'Motor6D'then
- if v.Part1==Instance_variant_1 then
- Old_M6D = v;break;
- end;
- end;
- end;
- end;
- else Error_Msg'Can not find torso.';end;
- else
- if typeof(rig)~='Instance'then
- Error_Msg'Argument "rig" is not an Instance.';end;
- if typeof(Instance_variant_1)~='Instance'then
- Error_Msg'Argument Instance_variant_1 is not an Instance.';end;
- end;
- else
- if not rig then Error_Msg'Argument 1 is nil.';end;
- if not Instance_variant_1 then Error_Msg'Argument 2 is nil.';end;
- end
- if Old_M6D then
- local torso,new_M6D = rig.Torso,(not type_ and Instance.new('Weld'))or
- Instance.new("Motor6D");
- new_M6D.Name = Old_M6D.Name;new_M6D.Part0 = Old_M6D.Part0;
- new_M6D.Part1 = Old_M6D.Part1;
- local P1n = new_M6D.Part1.Name
- if P1n=='Left Arm'then
- new_M6D.C0 = CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
- new_M6D.C1 = CFrame.new(0.5, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 0.999999881, 0, -4.37113812e-08)
- elseif P1n=='Right Arm'then
- new_M6D.C0 = CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08)
- new_M6D.C1 = CFrame.new(-0.5, 0.5, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -0.999999881, 0, -4.37113812e-08)
- elseif P1n=='Left Leg'then
- new_M6D.C0 = CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
- new_M6D.C1 = CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0, 0.999999881, 0, 0.99999994, 1.49011612e-08, -4.37113847e-08)
- elseif P1n=='Right Leg'then
- new_M6D.C0 = CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08)
- new_M6D.C1 = CFrame.new(0.5, 1, 1.1920929e-07, -4.37113883e-08, 0, 1, -2.08616257e-07, 0.999999881, -7.10542736e-15, -0.999999881, -1.49011612e-07, -4.37113847e-08)
- end;
- new_M6D.Parent = torso;Old_M6D:Destroy();return new_M6D;end;
- end;
- local pchar,cwrap =
- player.Character,coroutine.wrap;
- local New = pchar:FindFirstChild'New'or(function()
- local fold=Instance.new("Folder");fold.Name='New';fold.Parent=pchar;return fold;
- end)();
- local function Get_Parts(character)
- local function FFC(n)return character:FindFirstChild(n);end;
- local LimbNames,M6_Names=
- {'Head','HumanoidRootPart','Left Arm','Left Leg','Right Arm',
- 'Right Leg','Torso',},{HumanoidRootPart='RootJoint','Left Hip','Left Shoulder',
- 'Neck','Right Hip','Right Shoulder'};
- local Appearence,Limbs,M6S={},{},{};
- local A_Count,Face_Count=0,0;
- for _,v in pairs(LimbNames)do local limb=FFC(v);if limb then Limbs[v]=limb;end;end;
- local Torso=Limbs.Torso;
- if Torso then for _,v in pairs(M6_Names)do local M6=Torso:FindFirstChild(v);
- if M6 then M6S[v]=M6;end;end;end;
- if not M6S.RootJoint and Limbs.HumanoidRootPart.RootJoint then
- M6S.RootJoint = Limbs.HumanoidRootPart.RootJoint;end;
- for _,v in pairs(character:GetDescendants())do
- if v:IsA'Accessory'then A_Count=A_Count+1;Appearence['Accessory_'..A_Count]=v;
- elseif v:IsA'Decal'and v.Parent==Limbs.Head and Limbs.Head then
- Face_Count=Face_Count+1;Appearence['Face_'..Face_Count]=v;
- elseif v:IsA'BodyColors'and not Appearence.BodyColors then Appearence.BodyColors=v;
- elseif v:IsA'Humanoid'and not Appearence.Humanoid then Appearence.Humanoid=v;end;
- end;
- return Limbs,M6S,Appearence;
- end;
- local limbs,m6s=Get_Parts(pchar);
- local Torso,RArm=limbs.Torso,limbs['Right Arm'];
- local Neck,LS,RS,RJ,LH,RH=m6s.Neck,m6s['Left Shoulder'],m6s['Right Shoulder'],
- m6s.RootJoint,m6s['Left Hip'],m6s['Right Hip']
- LS,RS,LH,RH=
- Get_New_Motor(pchar,LS),Get_New_Motor(pchar,RS),
- Get_New_Motor(pchar,LH),Get_New_Motor(pchar,RH)
- local hum = pchar:FindFirstChildWhichIsA'Humanoid''Model';if hp then
- local hum = hp:FindFirstChildWhichIsA'Humanoid';
- local Destroy_Part = hp:FindFirstChild'Head'or hp:FindFirstChild'Torso'or
- hp:FindFirstChild'HumanoidRootPart';
- if hp~=workspace and hp.Name~=workspace.Name and hp~=pchar then
- if hum then if hum.Health>1000 then hum.Health = 0;return hit;else
- hum:TakeDamage(damage);return hit;end;
- elseif Destroy_Part then Destroy_Part:Destroy();if Destroy_Part~=hit then
- return hit;end;else pcall(function()hp:BreakJoints();end);
- end;end;end;end;
- end;
- local function Get_Sound(props,id)
- local Main_Sound = (props and (function()
- props.Volume = (not props.Volume and 2)or props.Volume;
- props.Parent = New;props.SoundId = (not id and props.SoundId)or id;
- return Instance_2.new('Sound',props);
- end)())or(function()
- for _,v in pairs( New:GetChildren())do if v:IsA'Sound'then
- if not v.Playing then return v;end;end;end;
- end)();
- Main_Sound.SoundId = (not id and props.SoundId)or id;
- Main_Sound:Play();return Main_Sound;
- end;
- local function GetStaff(char)
- local Staff=New:FindFirstChild'Staff'or(function()
- local a=Instance.new("Part");a.Name='Staff';a.Shape='Cylinder';
- a.Size=Vector3.new(5,.1,.1);a.Massless=true;a.CanCollide=false;
- a.Material='Metal'a.Parent=New;return a;
- end)();
- local w1=Staff:FindFirstChildWhichIsA'Weld'or(function()
- local a=Instance.new('Weld');a.Part1=Staff;a.Part0=Torso;
- a.C0 = CFs.Staff_Away_C0;a.C1 = CFs.Staff_Away_C1;a.Parent=Staff;return a;
- end)();return Staff;
- end;
- local function Bullet_Ray_1(Start,CF,id)
- local dis,aim_CF,Prime_CF = (Start - CF.Position).Magnitude,
- function(s,e)return CFrame.new(s,e);end;
- local Bullet_Ray = BT_1_Cache[id*2-1]or
- Instance_2.Get_Part({Transparency=.5,Material='Metal',
- CFrame=aim_CF(Start,CF.Position)*CFrame.Angles(0,math.rad(90),0)*
- CFrame.new(dis/2,0,0),Size=Vector3.new(dis,.1,.1),Shape='Cylinder',
- Anchored=true,CanCollide=false,Parent=New,});
- Bullet_Ray.Parent=New;
- local Bullet = BT_1_Cache[id*2]or
- Instance_2.Get_Part({
- Color=Color3.new(1,0,0),Material='DiamondPlate',Size=Vector3.new(1,.25,1),
- Anchored=true,CFrame=Bullet_Ray.CFrame*CFrame.new(dis/2,0,0),
- CanCollide=false,Parent=New,});
- Bullet_Ray.CFrame=aim_CF(Start,CF.Position)*CFrame.Angles(0,math.rad(90),0)*
- CFrame.new(dis/2,0,0);Bullet_Ray.Size=Vector3.new(dis,.1,.1);
- Bullet.Parent=New;Bullet:ClearAllChildren();Bullet.Anchored=true;
- wait(1/math.huge);
- Bullet.CFrame=Bullet_Ray.CFrame*CFrame.new(dis/2,0,0);Prime_CF=Bullet_Ray.CFrame;
- local Deb_AddItem = cwrap(function()
- local duration,increment = .5,.1;
- local a_1 = 0;
- repeat wait(increment);a_1=a_1+increment;
- until not Bullet_Ray or a_1>=duration or Bullet_Ray.CFrame~=Prime_CF or
- not Bullet_Ray.Parent;
- if a_1>=duration then Bullet_Ray.Parent=nil;end;
- end);Deb_AddItem();
- return Bullet,Bullet_Ray
- end;
- local Staff = GetStaff(pchar);
- local Staff_Weld = Staff.Weld;
- local Staff_In_Hand,Is_Swinging,Staff_Deb = false,false,true;
- Sound_Cache[1]=Get_Sound({Volume=5},'rbxassetid://166423113');
- Sound_Cache[1]:Stop();
- re.OnServerEvent:Connect(function(pl,...)
- local args = {...};
- if pl==player then
- if args[1]=='KD'then
- if args[2]=='e'and not hum.Sit then
- Char_Bools.Staff_Enabled=(Char_Bools.Staff_Enabled=='Staff'and
- 'Neutral')or'Staff';
- if Char_Bools.Staff_Enabled=='Staff'and not hum.Sit then
- Staff_Weld.Part0=RArm;Staff_Weld.C0=CFs.Staff_Ready_C0;
- Staff_Weld.C1=CFs.Staff_Ready_C1;Staff_In_Hand=true;
- elseif Char_Bools.Staff_Enabled=='Neutral'then
- Staff_Weld.Part0=Torso;Staff_Weld.C0=CFs.Staff_Away_C0;
- Staff_Weld.C1=CFs.Staff_Away_C1;Staff_In_Hand=false
- end;
- elseif args[2]=='f'and args[4]and Char_Bools.Staff_Enabled~='Staff'
- and not Char_Bools.In_Throwing_Bullets_T1 then
- Char_Bools.In_Throwing_Bullets_T1 = true;
- for i=1,3 do
- local ts = Sound_Cache[1];
- if not ts then
- Sound_Cache[1] = Get_Sound({Volume=5},
- 'rbxassetid://166423113');
- ts = Sound_Cache;
- end;ts:Play();
- args[3],args[4] =
- rf:InvokeClient(player,'Get_Mouse_CF'),
- rf:InvokeClient(player,'Get_Mouse_Target');
- local a,b=
- Bullet_Ray_1((RArm.CFrame*CFrame.new(0,-1,0).Position),
- args[3],BT_1_Count);
- BT_1_Cache[BT_1_Count*2-1] = b;BT_1_Cache[BT_1_Count*2] = a;
- BT_1_Count = BT_1_Count + 1;
- if BT_1_Count>BT_1_Max then BT_1_Count = 1;end;
- local stick_part = Custom_Damage(args[4]);
- if stick_part then a.Anchored=false;
- local w=Instance_2.new('WeldConstraint',{Part0=a,
- Part1=stick_part;Parent=a;});end;
- wait();
- end;
- Char_Bools.In_Throwing_Bullets_T1 = false
- end;
- elseif args[1]=='MB_Down'and Staff_In_Hand and Staff_Deb then
- Staff_Deb = false;Is_Swinging = true;
- local Temp_ev = Staff.Touched:Connect(function(h)Custom_Damage(h,25)end);
- wait(.1);
- Temp_ev:Disconnect();
- Is_Swinging = false;Staff_Deb = true;
- end;
- end;
- end);
- spawn(function()
- local hrp = limbs.HumanoidRootPart;
- local Left_Step = true;
- local clerp = function(cf,goal,percent)return cf:Lerp(goal,percent);end;
- local Frame,Throw_Frame,Climb_Frame,Swing_Frame = 0,0,0,0;
- local Frames_Max = 10;
- local Throw_Frames_Max = 10;
- local Climb_Frame_Max = 10;
- local Swing_Frames_Max = 10;
- local Move_To_Decimal = .5;
- local moving_radius = 1;
- while true do
- local state = hum:GetState();
- local velo = hrp.Velocity;
- local Abs_Climb_Frame = math.abs(Climb_Frame);
- local Step_Frame = Frame % Frames_Max;
- local Step_Throw_Frame = Throw_Frame % Throw_Frames_Max;
- local Step_Climb_Frame = Abs_Climb_Frame % Climb_Frame_Max;
- local Step_Swing_Frame = Swing_Frame % Swing_Frames_Max
- if hum.Sit then
- --// Sitting
- Neck.C0=clerp(Neck.C0,Default_CFs.Neck_C0,Move_To_Decimal);
- Neck.C1=clerp(Neck.C1,Default_CFs.Neck_C1,Move_To_Decimal);
- RJ.C0=clerp(RJ.C0,Default_CFs.RootJoint_C0,Move_To_Decimal);
- RJ.C1=clerp(RJ.C1,Default_CFs.RootJoint_C1,Move_To_Decimal);
- LS.C0=clerp(LS.C0,CFs.Sitting_Left_Shoulder_C0,Move_To_Decimal);
- LS.C1=clerp(LS.C1,CFs.Sitting_Left_Shoulder_C1,Move_To_Decimal);
- if Throw_Frame==0 then
- RS.C0=clerp(RS.C0,CFs.Sitting_Right_Shoulder_C0,Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Sitting_Right_Shoulder_C1,Move_To_Decimal);
- elseif Step_Throw_Frame<=Throw_Frames_Max/2 then
- RS.C0=clerp(RS.C0,CFs.Readying_Throw_Right_Shoulder_C0,Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Readying_Throw_Right_Shoulder_C1,Move_To_Decimal);
- else
- RS.C0=clerp(RS.C0,CFs.Threw_Right_Shoulder_C0,Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Threw_Right_Shoulder_C1,Move_To_Decimal);
- end;
- LH.C0=clerp(LH.C0,CFs.Sitting_Left_Hip_C0,Move_To_Decimal);
- LH.C1=clerp(LH.C1,CFs.Sitting_Left_Hip_C1,Move_To_Decimal);
- RH.C0=clerp(RH.C0,CFs.Sitting_Right_Hip_C0,Move_To_Decimal);
- RH.C1=clerp(RH.C1,CFs.Sitting_Right_Hip_C1,Move_To_Decimal);
- elseif velo.Y<-moving_radius*2 then
- --// Falling
- Climb_Frame=Climb_Frame-1
- if state==Enum.HumanoidStateType.Climbing then
- if Step_Climb_Frame>Climb_Frame_Max/2 then
- Neck.C0=clerp(Neck.C0,Default_CFs.Neck_C0,Move_To_Decimal);
- Neck.C1=clerp(Neck.C1,Default_CFs.Neck_C1,Move_To_Decimal);
- RJ.C0=clerp(RJ.C0,Default_CFs.RootJoint_C0,Move_To_Decimal);
- RJ.C1=clerp(RJ.C1,Default_CFs.RootJoint_C1,Move_To_Decimal);
- LS.C0=clerp(LS.C0,CFs.Climbing_Left_Shoulder_C0,Move_To_Decimal);
- LS.C1=clerp(LS.C1,CFs.Climbing_Left_Shoulder_C1,Move_To_Decimal);
- if Is_Swinging then
- Swing_Frame=Swing_Frame+1;
- if Step_Swing_Frame<=Swing_Frames_Max/2 then
- RS.C0=clerp(RS.C0,CFs.Swing_1S_Right_Shoulder_C0,
- Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Swing_1S_Right_Shoulder_C1,
- Move_To_Decimal);
- else
- RS.C0=clerp(RS.C0,CFs.Swing_1F_Right_Shoulder_C0,
- Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Swing_1F_Right_Shoulder_C1,
- Move_To_Decimal);
- end
- elseif Throw_Frame==0 then
- RS.C0=clerp(RS.C0,CFs.Climbing_Right_Shoulder_C0,
- Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Climbing_Right_Shoulder_C1,
- Move_To_Decimal);
- elseif Step_Throw_Frame<=Throw_Frames_Max/2 then
- RS.C0=clerp(RS.C0,CFs.Readying_Throw_Right_Shoulder_C0,
- Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Readying_Throw_Right_Shoulder_C1,
- Move_To_Decimal);
- else
- RS.C0=clerp(RS.C0,CFs.Threw_Right_Shoulder_C0,Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Threw_Right_Shoulder_C1,Move_To_Decimal);
- end;
- LH.C0=clerp(LH.C0,CFs.Climbing_Left_Hip_C0,Move_To_Decimal);
- LH.C1=clerp(LH.C1,CFs.Climbing_Left_Hip_C1,Move_To_Decimal);
- RH.C0=clerp(RH.C0,Default_CFs.Right_Hip_C0,Move_To_Decimal);
- RH.C1=clerp(RH.C1,Default_CFs.Right_Hip_C1,Move_To_Decimal);
- else
- Neck.C0=clerp(Neck.C0,Default_CFs.Neck_C0,Move_To_Decimal);
- Neck.C1=clerp(Neck.C1,Default_CFs.Neck_C1,Move_To_Decimal);
- RJ.C0=clerp(RJ.C0,Default_CFs.RootJoint_C0,Move_To_Decimal);
- RJ.C1=clerp(RJ.C1,Default_CFs.RootJoint_C1,Move_To_Decimal);
- LS.C0=clerp(LS.C0,CFs.Climbing2_Left_Shoulder_C0,Move_To_Decimal);
- LS.C1=clerp(LS.C1,CFs.Climbing2_Left_Shoulder_C1,Move_To_Decimal);
- if Throw_Frame==0 then
- RS.C0=clerp(RS.C0,CFs.Climbing2_Right_Shoulder_C0,
- Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Climbing2_Right_Shoulder_C1,
- Move_To_Decimal);
- elseif Step_Throw_Frame<=Throw_Frames_Max/2 then
- RS.C0=clerp(RS.C0,CFs.Readying_Throw_Right_Shoulder_C0,
- Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Readying_Throw_Right_Shoulder_C1,
- Move_To_Decimal);
- else
- RS.C0=clerp(RS.C0,CFs.Threw_Right_Shoulder_C0,Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Threw_Right_Shoulder_C1,Move_To_Decimal);
- end;
- LH.C0=clerp(LH.C0,Default_CFs.Left_Hip_C0,Move_To_Decimal);
- LH.C1=clerp(LH.C1,Default_CFs.Left_Hip_C1,Move_To_Decimal);
- RH.C0=clerp(RH.C0,CFs.Climbing_Right_Hip_C0,Move_To_Decimal);
- RH.C1=clerp(RH.C1,CFs.Climbing_Right_Hip_C1,Move_To_Decimal);
- end;
- else
- Neck.C0=clerp(Neck.C0,CFs.Fall_Neck_C0,Move_To_Decimal);
- Neck.C1=clerp(Neck.C1,CFs.Fall_Neck_C1,Move_To_Decimal);
- RJ.C0=clerp(RJ.C0,CFs.Fall_Root_Joint_C0,Move_To_Decimal);
- RJ.C1=clerp(RJ.C1,CFs.Fall_Root_Joint_C1,Move_To_Decimal);
- LS.C0=clerp(LS.C0,CFs.Fall_Left_Shoulder_C0,Move_To_Decimal);
- LS.C1=clerp(LS.C1,CFs.Fall_Left_Shoulder_C1,Move_To_Decimal);
- if Throw_Frame==0 then
- RS.C0=clerp(RS.C0,CFs.Fall_Right_Shoulder_C0,
- Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Fall_Right_Shoulder_C1,
- Move_To_Decimal);
- elseif Step_Throw_Frame<=Throw_Frames_Max/2 then
- RS.C0=clerp(RS.C0,CFs.Readying_Throw_Right_Shoulder_C0,
- Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Readying_Throw_Right_Shoulder_C1,
- Move_To_Decimal);
- else
- RS.C0=clerp(RS.C0,CFs.Threw_Right_Shoulder_C0,Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Threw_Right_Shoulder_C1,Move_To_Decimal);
- end;
- LH.C0=clerp(LH.C0,CFs.Fall_Left_Hip_C0,Move_To_Decimal);
- LH.C1=clerp(LH.C1,CFs.Fall_Left_Hip_C1,Move_To_Decimal);
- RH.C0=clerp(RH.C0,CFs.Fall_Right_Hip_C0,Move_To_Decimal);
- RH.C1=clerp(RH.C1,CFs.Fall_Right_Hip_C1,Move_To_Decimal);
- end;
- elseif velo.Y>moving_radius*2 then
- --// Jumping
- Climb_Frame=Climb_Frame+1
- if state==Enum.HumanoidStateType.Climbing then
- if Step_Climb_Frame<=Climb_Frame_Max/2 then
- Neck.C0=clerp(Neck.C0,Default_CFs.Neck_C0,Move_To_Decimal);
- Neck.C1=clerp(Neck.C1,Default_CFs.Neck_C1,Move_To_Decimal);
- RJ.C0=clerp(RJ.C0,Default_CFs.RootJoint_C0,Move_To_Decimal);
- RJ.C1=clerp(RJ.C1,Default_CFs.RootJoint_C1,Move_To_Decimal);
- LS.C0=clerp(LS.C0,CFs.Climbing_Left_Shoulder_C0,Move_To_Decimal);
- LS.C1=clerp(LS.C1,CFs.Climbing_Left_Shoulder_C1,Move_To_Decimal);
- if Is_Swinging then
- Swing_Frame=Swing_Frame+1;
- if Step_Swing_Frame<=Swing_Frames_Max/2 then
- RS.C0=clerp(RS.C0,CFs.Swing_1S_Right_Shoulder_C0,
- Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Swing_1S_Right_Shoulder_C1,
- Move_To_Decimal);
- else
- RS.C0=clerp(RS.C0,CFs.Swing_1F_Right_Shoulder_C0,
- Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Swing_1F_Right_Shoulder_C1,
- Move_To_Decimal);
- end
- elseif Throw_Frame==0 then
- RS.C0=clerp(RS.C0,CFs.Climbing_Right_Shoulder_C0,
- Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Climbing_Right_Shoulder_C1,
- Move_To_Decimal);
- elseif Step_Throw_Frame<=Throw_Frames_Max/2 then
- RS.C0=clerp(RS.C0,CFs.Readying_Throw_Right_Shoulder_C0,
- Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Readying_Throw_Right_Shoulder_C1,
- Move_To_Decimal);
- else
- RS.C0=clerp(RS.C0,CFs.Threw_Right_Shoulder_C0,Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Threw_Right_Shoulder_C1,Move_To_Decimal);
- end;
- LH.C0=clerp(LH.C0,CFs.Climbing_Left_Hip_C0,Move_To_Decimal);
- LH.C1=clerp(LH.C1,CFs.Climbing_Left_Hip_C1,Move_To_Decimal);
- RH.C0=clerp(RH.C0,Default_CFs.Right_Hip_C0,Move_To_Decimal);
- RH.C1=clerp(RH.C1,Default_CFs.Right_Hip_C1,Move_To_Decimal);
- else
- Neck.C0=clerp(Neck.C0,Default_CFs.Neck_C0,Move_To_Decimal);
- Neck.C1=clerp(Neck.C1,Default_CFs.Neck_C1,Move_To_Decimal);
- RJ.C0=clerp(RJ.C0,Default_CFs.RootJoint_C0,Move_To_Decimal);
- RJ.C1=clerp(RJ.C1,Default_CFs.RootJoint_C1,Move_To_Decimal);
- LS.C0=clerp(LS.C0,CFs.Climbing2_Left_Shoulder_C0,Move_To_Decimal);
- LS.C1=clerp(LS.C1,CFs.Climbing2_Left_Shoulder_C1,Move_To_Decimal);
- if Throw_Frame==0 then
- RS.C0=clerp(RS.C0,CFs.Climbing2_Right_Shoulder_C0,
- Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Climbing2_Right_Shoulder_C1,
- Move_To_Decimal);
- elseif Step_Throw_Frame<=Throw_Frames_Max/2 then
- RS.C0=clerp(RS.C0,CFs.Readying_Throw_Right_Shoulder_C0,
- Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Readying_Throw_Right_Shoulder_C1,
- Move_To_Decimal);
- else
- RS.C0=clerp(RS.C0,CFs.Threw_Right_Shoulder_C0,Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Threw_Right_Shoulder_C1,Move_To_Decimal);
- end;
- LH.C0=clerp(LH.C0,Default_CFs.Left_Hip_C0,Move_To_Decimal);
- LH.C1=clerp(LH.C1,Default_CFs.Left_Hip_C1,Move_To_Decimal);
- RH.C0=clerp(RH.C0,CFs.Climbing_Right_Hip_C0,Move_To_Decimal);
- RH.C1=clerp(RH.C1,CFs.Climbing_Right_Hip_C1,Move_To_Decimal);
- end;
- else
- Neck.C0=clerp(Neck.C0,CFs.Jump_Neck_C0,Move_To_Decimal);
- Neck.C1=clerp(Neck.C1,CFs.Jump_Neck_C1,Move_To_Decimal);
- RJ.C0=clerp(RJ.C0,CFs.Jump_Root_Joint_C0,Move_To_Decimal);
- RJ.C1=clerp(RJ.C1,CFs.Jump_Root_Joint_C1,Move_To_Decimal);
- LS.C0=clerp(LS.C0,CFs.Jump_Left_Shoulder_C0,Move_To_Decimal);
- LS.C1=clerp(LS.C1,CFs.Jump_Left_Shoulder_C1,Move_To_Decimal);
- if Throw_Frame==0 then
- RS.C0=clerp(RS.C0,CFs.Jump_Right_Shoulder_C0,Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Jump_Right_Shoulder_C1,Move_To_Decimal);
- elseif Step_Throw_Frame<=Throw_Frames_Max/2 then
- RS.C0=clerp(RS.C0,CFs.Readying_Throw_Right_Shoulder_C0,
- Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Readying_Throw_Right_Shoulder_C1,
- Move_To_Decimal);
- else
- RS.C0=clerp(RS.C0,CFs.Threw_Right_Shoulder_C0,Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Threw_Right_Shoulder_C1,Move_To_Decimal);
- end;
- LH.C0=clerp(LH.C0,CFs.Jump_Left_Hip_C0,Move_To_Decimal);
- LH.C1=clerp(LH.C1,CFs.Jump_Left_Hip_C1,Move_To_Decimal);
- RH.C0=clerp(RH.C0,CFs.Jump_Right_Hip_C0,Move_To_Decimal);
- RH.C1=clerp(RH.C1,CFs.Jump_Right_Hip_C1,Move_To_Decimal);
- end
- elseif velo.X>moving_radius or velo.X<-moving_radius or
- velo.Z>moving_radius or velo.Z<-moving_radius then
- --// Walking
- Neck.C0=clerp(Neck.C0,CFs.Run_Pose_Neck_C0,Move_To_Decimal);
- Neck.C1=clerp(Neck.C1,CFs.Run_Pose_Neck_C1,Move_To_Decimal);
- RJ.C0=clerp(RJ.C0,CFs.Run_Pose_Root_Joint_C0,Move_To_Decimal);
- RJ.C1=clerp(RJ.C1,CFs.Run_Pose_Root_Joint_C1,Move_To_Decimal);
- LS.C0=clerp(LS.C0,CFs.Run_Pose_Left_Shoulder_C0,Move_To_Decimal);
- LS.C1=clerp(LS.C1,CFs.Run_Pose_Left_Shoulder_C1,Move_To_Decimal);
- if Is_Swinging then
- Swing_Frame=Swing_Frame+1;
- if Step_Swing_Frame<=Swing_Frames_Max/2 then
- RS.C0=clerp(RS.C0,CFs.Swing_1S_Right_Shoulder_C0,
- -Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Swing_1S_Right_Shoulder_C1,
- -Move_To_Decimal);
- else
- RS.C0=clerp(RS.C0,CFs.Swing_1F_Right_Shoulder_C0,
- -Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Swing_1F_Right_Shoulder_C1,
- -Move_To_Decimal);
- end
- elseif Char_Bools.Staff_Enabled=='Staff'then
- RS.C0=clerp(RS.C0,CFs.Staff_Out2_Right_Shoulder_C0,Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Staff_Out2_Right_Shoulder_C1,Move_To_Decimal);
- elseif Throw_Frame==0 then
- RS.C0=clerp(RS.C0,CFs.Run_Pose_Right_Shoulder_C0,Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Run_Pose_Right_Shoulder_C1,Move_To_Decimal);
- elseif Step_Throw_Frame<=Throw_Frames_Max/2 then
- RS.C0=clerp(RS.C0,CFs.Readying_Throw_Right_Shoulder_C0,
- Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Readying_Throw_Right_Shoulder_C1,
- Move_To_Decimal);
- else
- RS.C0=clerp(RS.C0,CFs.Threw_Right_Shoulder_C0,Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Threw_Right_Shoulder_C1,Move_To_Decimal);
- end;
- if Step_Frame<=Frames_Max/2 then
- --// Step 1
- LH.C0=clerp(LH.C0,CFs.Run_Step_Forward_Left_Hip_C0,Move_To_Decimal);
- LH.C1=clerp(LH.C1,CFs.Run_Step_Forward_Left_Hip_C1,Move_To_Decimal);
- RH.C0=clerp(RH.C0,CFs.Run_Step_Backward_Right_Hip_C0,Move_To_Decimal);
- RH.C1=clerp(RH.C1,CFs.Run_Step_Backward_Right_Hip_C1,Move_To_Decimal);
- else
- --// Step 2
- LH.C0=clerp(LH.C0,CFs.Run_Step_Backward_Left_Hip_C0,Move_To_Decimal);
- LH.C1=clerp(LH.C1,CFs.Run_Step_Backward_Left_Hip_C1,Move_To_Decimal);
- RH.C0=clerp(RH.C0,CFs.Run_Step_Forward_Right_Hip_C0,Move_To_Decimal);
- RH.C1=clerp(RH.C1,CFs.Run_Step_Forward_Right_Hip_C1,Move_To_Decimal);
- end;
- -- Naruto run here if you know what local variables are. -- end
- else
- if state~=Enum.HumanoidStateType.Climbing then
- --// Idle
- Neck.C0=clerp(Neck.C0,Default_CFs.Neck_C0,Move_To_Decimal);
- Neck.C1=clerp(Neck.C1,Default_CFs.Neck_C1,Move_To_Decimal);
- RJ.C0=clerp(RJ.C0,Default_CFs.RootJoint_C0,Move_To_Decimal);
- RJ.C1=clerp(RJ.C1,Default_CFs.RootJoint_C1,Move_To_Decimal);
- LS.C0=clerp(LS.C0,Default_CFs.Left_Shoulder_C0,Move_To_Decimal);
- LS.C1=clerp(LS.C1,Default_CFs.Left_Shoulder_C1,Move_To_Decimal);
- if Is_Swinging then
- Swing_Frame=Swing_Frame+1;
- if Step_Swing_Frame<=Swing_Frames_Max/2 then
- RS.C0=clerp(RS.C0,CFs.Swing_1S_Right_Shoulder_C0,
- Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Swing_1S_Right_Shoulder_C1,
- Move_To_Decimal);
- else
- RS.C0=clerp(RS.C0,CFs.Swing_1F_Right_Shoulder_C0,
- Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Swing_1F_Right_Shoulder_C1,
- Move_To_Decimal);
- end
- elseif Char_Bools.Staff_Enabled=='Staff'then
- RS.C0=clerp(RS.C0,CFs.Staff_Out_Right_Shoulder_C0,
- Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Staff_Out_Right_Shoulder_C1,
- Move_To_Decimal);
- elseif Throw_Frame==0 then
- RS.C0=clerp(RS.C0,Default_CFs.Right_Shoulder_C0,Move_To_Decimal);
- RS.C1=clerp(RS.C1,Default_CFs.Right_Shoulder_C1,Move_To_Decimal);
- elseif Step_Throw_Frame<=Throw_Frames_Max/2 then
- RS.C0=clerp(RS.C0,CFs.Readying_Throw_Right_Shoulder_C0,
- Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Readying_Throw_Right_Shoulder_C1,
- Move_To_Decimal);
- else
- RS.C0=clerp(RS.C0,CFs.Threw_Right_Shoulder_C0,Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Threw_Right_Shoulder_C1,Move_To_Decimal);
- end;
- LH.C0=clerp(LH.C0,Default_CFs.Left_Hip_C0,Move_To_Decimal);
- LH.C1=clerp(LH.C1,Default_CFs.Left_Hip_C1,Move_To_Decimal);
- RH.C0=clerp(RH.C0,Default_CFs.Right_Hip_C0,Move_To_Decimal);
- RH.C1=clerp(RH.C1,Default_CFs.Right_Hip_C1,Move_To_Decimal);
- else
- if Throw_Frame~=0 then
- if Step_Throw_Frame<=Throw_Frames_Max/2 then
- RS.C0=clerp(RS.C0,CFs.Readying_Throw_Right_Shoulder_C0,
- Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Readying_Throw_Right_Shoulder_C1,
- Move_To_Decimal);
- else
- RS.C0=clerp(RS.C0,CFs.Threw_Right_Shoulder_C0,Move_To_Decimal);
- RS.C1=clerp(RS.C1,CFs.Threw_Right_Shoulder_C1,Move_To_Decimal);
- end;
- end;
- end;
- end;
- if velo.Y>moving_radius or velo.Y<-moving_radius or velo.X>moving_radius
- or velo.X<-moving_radius
- or velo.Z>moving_radius or velo.Z<-moving_radius then
- Frame=Frame+1 else Frame=0 end;
- if Char_Bools.In_Throwing_Bullets_T1 then Throw_Frame=Throw_Frame+1;
- else Throw_Frame=0;end;
- wait();
- end;
- end);
- end;
- wait(2)
- I_Robbed_Robins_Gear(owner)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement