Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- warn('Pumpkin Bot From Reason To Die')
- warn('Made By GAMEKILLERTOY')
- warn('Made On Christmas Eve 24/12/2018')
- warn('Do Not Leak.')
- -------------
- --//Fe Code
- -------------
- if game:GetService("RunService"):IsClient()then error("What are u doing run h/ not hl/ u umm....")end;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")
- ------------------
- --//End Of Fe Code
- ------------------
- wait(1/60)
- plr = game:GetService("Players").LocalPlayer
- char = plr.Character
- leftarm = char["Left Arm"]
- rightarm = char["Right Arm"]
- head = char["Head"]
- hum = char["Humanoid"]
- leftleg = char["Left Leg"]
- rightleg = char["Right Leg"]
- torso = char["Torso"]
- position = nil
- local Camera = workspace.CurrentCamera
- Mouse = plr:GetMouse()
- hrp = char["HumanoidRootPart"]
- lhip = torso["Left Hip"]
- rhip = torso["Right Hip"]
- neck = torso["Neck"]
- lshoulder = torso["Left Shoulder"]
- rshoulder = torso["Right Shoulder"]
- rootjoint = hrp["RootJoint"]
- hum.HipHeight = 2.5
- local debby = game:GetService("Debris")
- attack = false
- shots = 140
- ScreenGui0 = Instance.new("ScreenGui")
- TextLabel1 = Instance.new("TextLabel")
- ScreenGui0.Parent = plr:FindFirstChildOfClass("PlayerGui")
- TextLabel1.Parent = ScreenGui0
- TextLabel1.Position = UDim2.new(0.040000014, 0, 0.564668775, 0)
- TextLabel1.Size = UDim2.new(0, 200, 0, 50)
- TextLabel1.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel1.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel1.BackgroundTransparency = 0.40000000596046
- TextLabel1.BorderSizePixel = 10
- TextLabel1.Font = Enum.Font.Highway
- TextLabel1.FontSize = Enum.FontSize.Size14
- TextLabel1.Text = "Ammo :"
- TextLabel1.TextColor = BrickColor.new("Really black")
- TextLabel1.TextColor3 = Color3.new(0, 0, 0)
- TextLabel1.TextScaled = true
- TextLabel1.TextSize = 14
- TextLabel1.TextWrap = true
- TextLabel1.TextWrapped = true
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- SpecialMesh2 = Instance.new("SpecialMesh")
- Motor6D3 = Instance.new("Motor6D")
- Part4 = Instance.new("Part")
- SpecialMesh5 = Instance.new("SpecialMesh")
- Motor6D6 = Instance.new("Motor6D")
- Part7 = Instance.new("Part")
- SpecialMesh8 = Instance.new("SpecialMesh")
- Motor6D9 = Instance.new("Motor6D")
- Part10 = Instance.new("Part")
- SpecialMesh11 = Instance.new("SpecialMesh")
- Motor6D12 = Instance.new("Motor6D")
- Part13 = Instance.new("Part")
- SpecialMesh14 = Instance.new("SpecialMesh")
- Motor6D15 = Instance.new("Motor6D")
- Part16 = Instance.new("Part")
- SpecialMesh17 = Instance.new("SpecialMesh")
- Motor6D18 = Instance.new("Motor6D")
- Part19 = Instance.new("Part")
- SpecialMesh20 = Instance.new("SpecialMesh")
- Motor6D21 = Instance.new("Motor6D")
- Part22 = Instance.new("Part")
- SpecialMesh23 = Instance.new("SpecialMesh")
- Motor6D24 = Instance.new("Motor6D")
- Part25 = Instance.new("Part")
- SpecialMesh26 = Instance.new("SpecialMesh")
- Motor6D27 = Instance.new("Motor6D")
- Part28 = Instance.new("Part")
- SpecialMesh29 = Instance.new("SpecialMesh")
- Motor6D30 = Instance.new("Motor6D")
- Part31 = Instance.new("Part")
- SpecialMesh32 = Instance.new("SpecialMesh")
- Motor6D33 = Instance.new("Motor6D")
- Part34 = Instance.new("Part")
- SpecialMesh35 = Instance.new("SpecialMesh")
- Model0.Parent = mas
- Part1.Name = "Right1"
- Part1.Parent = Model0
- Part1.Transparency = 1
- Part1.CFrame = CFrame.new(9.33311081, 0.183244228, 17.4095669, -0.998881698, -0.00363235897, -0.0471435338, -0.002744667, 0.999818265, -0.018880643, 0.047203552, -0.0187301375, -0.998709679)
- Part1.Orientation = Vector3.new(1.08000004, -177.300003, -0.159999996)
- Part1.Position = Vector3.new(9.33311081, 0.183244228, 17.4095669)
- Part1.Rotation = Vector3.new(178.919998, -2.70000005, 179.789993)
- Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part1.Size = Vector3.new(1.080001, 0.310000122, 1.40000045)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Dark stone grey")
- Part1.Material = Enum.Material.SmoothPlastic
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Dark stone grey")
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "rbxassetid://2674959759"
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- Motor6D3.Name = "Right"
- Motor6D3.Parent = Part1
- Motor6D3.C0 = CFrame.new(-1.42142916, -0.00518584251, -0.0670986176, 1.00000012, 5.82076609e-11, 0, 5.82076609e-11, 1.00000012, 1.86264515e-09, 0, 1.86264515e-09, 1)
- Motor6D3.Part0 = Part34
- Motor6D3.Part1 = Part1
- Motor6D3.part1 = Part1
- Part4.Name = "Base"
- Part4.Parent = Model0
- Part4.CFrame = CFrame.new(8.67791367, 4.32636499, 17.241909, -1, 0.000478663773, -1.53854489e-06, -0.000478662783, -1.00000012, 4.43682075e-06, -1.51246786e-06, 4.44427133e-06, 1)
- Part4.Orientation = Vector3.new(0, 0, -179.970001)
- Part4.Position = Vector3.new(8.67791367, 4.32636499, 17.241909)
- Part4.Rotation = Vector3.new(0, 0, -179.970001)
- Part4.Size = Vector3.new(4, 1, 2)
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.CanCollide = false
- Part4.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh5.Parent = Part4
- SpecialMesh5.MeshId = "rbxassetid://2400995463"
- SpecialMesh5.Scale = Vector3.new(1, 1.10000002, 1)
- SpecialMesh5.TextureId = "rbxassetid://2400997534"
- SpecialMesh5.MeshType = Enum.MeshType.FileMesh
- Motor6D6.Name = "Base"
- Motor6D6.Parent = Part4
- Motor6D6.C0 = CFrame.new(-0.786250114, 4.1427002, 0.0530052185, 0.998882711, 0.00226674811, 0.047205057, 0.00315381051, -0.999819756, -0.0187256895, 0.0471540913, 0.0188536402, -0.998709679)
- Motor6D6.Part0 = Part34
- Motor6D6.Part1 = Part4
- Part7.Name = "Right2"
- Part7.Parent = Model0
- Part7.CFrame = CFrame.new(9.38368607, 2.63722801, 17.1389523, 0.98612541, 0.0323248468, 0.16282472, 0.138493985, 0.38057059, -0.914322734, -0.0915216357, 0.924186707, 0.370813429)
- Part7.Orientation = Vector3.new(66.1100006, 23.7099991, 20)
- Part7.Position = Vector3.new(9.38368607, 2.63722801, 17.1389523)
- Part7.Rotation = Vector3.new(67.9199982, 9.36999989, -1.88)
- Part7.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part7.Size = Vector3.new(1.080001, 1.74999952, 1.40000045)
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.BrickColor = BrickColor.new("Dark stone grey")
- Part7.Material = Enum.Material.SmoothPlastic
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part7.brickColor = BrickColor.new("Dark stone grey")
- SpecialMesh8.Parent = Part7
- SpecialMesh8.MeshId = "rbxassetid://2674953990"
- SpecialMesh8.MeshType = Enum.MeshType.FileMesh
- Motor6D9.Name = "Right"
- Motor6D9.Parent = Part7
- Motor6D9.C0 = CFrame.new(-1.49145699, 2.45323563, 0.154449463, -0.989722669, 0.0102916472, -0.142629385, 0.136601016, 0.363073707, -0.921692967, 0.0422992408, -0.931703568, -0.360748082)
- Motor6D9.Part0 = Part34
- Motor6D9.Part1 = Part7
- Motor6D9.part1 = Part7
- Part10.Name = "Right3"
- Part10.Parent = Model0
- Part10.CFrame = CFrame.new(9.44626999, 1.78425395, 17.1288948, 0.992015243, 0.000441342592, 0.126118302, -0.126023486, -0.0354624912, 0.991393566, 0.00490998477, -0.999370873, -0.0351237096)
- Part10.Orientation = Vector3.new(-82.4800034, 105.559998, -105.720001)
- Part10.Position = Vector3.new(9.44626999, 1.78425395, 17.1288948)
- Part10.Rotation = Vector3.new(-92.0299988, 7.25, -0.0299999993)
- Part10.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part10.Size = Vector3.new(1.06399989, 1.61400008, 2)
- Part10.BottomSurface = Enum.SurfaceType.Smooth
- Part10.BrickColor = BrickColor.new("Dark stone grey")
- Part10.TopSurface = Enum.SurfaceType.Smooth
- Part10.brickColor = BrickColor.new("Dark stone grey")
- SpecialMesh11.Parent = Part10
- SpecialMesh11.MeshId = "rbxassetid://2674953677"
- SpecialMesh11.MeshType = Enum.MeshType.FileMesh
- Motor6D12.Name = "Right"
- Motor6D12.Parent = Part10
- Motor6D12.C0 = CFrame.new(-1.552104, 1.60037804, 0.177648544, -0.990328014, -0.0475173518, -0.130356237, -0.129695848, -0.0167392865, 0.991412699, -0.0492913574, 0.998730123, 0.010414578)
- Motor6D12.Part0 = Part34
- Motor6D12.Part1 = Part10
- Motor6D12.part1 = Part10
- Part13.Name = "left joy stick"
- Part13.Parent = Model0
- Part13.CFrame = CFrame.new(7.15353441, 5.09736586, 18.77075, 1.00000012, 1.00278994e-05, -2.0340085e-06, -1.002918e-05, 1.00000036, 4.46848571e-06, 2.00420618e-06, -4.472211e-06, 1)
- Part13.Position = Vector3.new(7.15353441, 5.09736586, 18.77075)
- Part13.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part13.Size = Vector3.new(0.430000365, 1, 0.680000424)
- Part13.BottomSurface = Enum.SurfaceType.Smooth
- Part13.BrickColor = BrickColor.new("Really black")
- Part13.TopSurface = Enum.SurfaceType.Smooth
- Part13.brickColor = BrickColor.new("Really black")
- SpecialMesh14.Parent = Part13
- SpecialMesh14.MeshId = "rbxassetid://2394494069"
- SpecialMesh14.MeshType = Enum.MeshType.FileMesh
- Motor6D15.Name = "left joy stick"
- Motor6D15.Parent = Part13
- Motor6D15.C0 = CFrame.new(0.806474686, 4.8904624, -1.4165554, -0.998881459, -0.00275489478, 0.0472055525, -0.00364242308, 0.999818146, -0.018725656, -0.0471453629, -0.0188766532, -0.998709679)
- Motor6D15.Part0 = Part34
- Motor6D15.Part1 = Part13
- Motor6D15.part1 = Part13
- Part16.Name = "Right4"
- Part16.Parent = Model0
- Part16.CFrame = CFrame.new(9.36532593, 0.877757132, 17.1428528, 0.997253358, 0.00228923932, 0.0740333945, 0.0615540221, 0.530335009, -0.845551074, -0.0411981754, 0.847785234, 0.528737187)
- Part16.Orientation = Vector3.new(57.7299995, 7.96999979, 6.61999989)
- Part16.Position = Vector3.new(9.36532593, 0.877757132, 17.1428528)
- Part16.Rotation = Vector3.new(57.9799995, 4.25, -0.129999995)
- Part16.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part16.Size = Vector3.new(1.06399989, 1.11400008, 1.29999995)
- Part16.BottomSurface = Enum.SurfaceType.Smooth
- Part16.BrickColor = BrickColor.new("Dark stone grey")
- Part16.TopSurface = Enum.SurfaceType.Smooth
- Part16.brickColor = BrickColor.new("Dark stone grey")
- SpecialMesh17.Parent = Part16
- SpecialMesh17.MeshId = "rbxassetid://2674954472"
- SpecialMesh17.MeshType = Enum.MeshType.FileMesh
- Motor6D18.Name = "Left"
- Motor6D18.Parent = Part16
- Motor6D18.C0 = CFrame.new(-1.46810436, 0.694079101, 0.184638977, -0.998251557, 0.036276184, -0.0466715693, 0.0586920716, 0.514350891, -0.855569243, -0.00703121722, -0.856812298, -0.515580595)
- Motor6D18.Part0 = Part34
- Motor6D18.Part1 = Part16
- Motor6D18.part1 = Part16
- Part19.Name = "Right joystic"
- Part19.Parent = Model0
- Part19.CFrame = CFrame.new(10.1280823, 5.09733534, 18.7707577, 1.00000012, 1.00278994e-05, -2.0340085e-06, -1.002918e-05, 1.00000036, 4.46848571e-06, 2.00420618e-06, -4.472211e-06, 1)
- Part19.Position = Vector3.new(10.1280823, 5.09733534, 18.7707577)
- Part19.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part19.Size = Vector3.new(0.430000365, 1, 0.680000424)
- Part19.BottomSurface = Enum.SurfaceType.Smooth
- Part19.BrickColor = BrickColor.new("Really black")
- Part19.TopSurface = Enum.SurfaceType.Smooth
- Part19.brickColor = BrickColor.new("Really black")
- SpecialMesh20.Parent = Part19
- SpecialMesh20.MeshId = "rbxassetid://2394494069"
- SpecialMesh20.MeshType = Enum.MeshType.FileMesh
- Motor6D21.Name = "Right joystic"
- Motor6D21.Parent = Part19
- Motor6D21.C0 = CFrame.new(-2.16474628, 4.87962723, -1.55679321, -0.998881459, -0.00275489478, 0.0472055525, -0.00364242308, 0.999818146, -0.018725656, -0.0471453629, -0.0188766532, -0.998709679)
- Motor6D21.Part0 = Part34
- Motor6D21.Part1 = Part19
- Motor6D21.part1 = Part19
- Part22.Name = "guns"
- Part22.Parent = Model0
- Part22.CFrame = CFrame.new(8.6575737, 4.14725161, 17.2230492, 1, 1.00283532e-05, -2.0227601e-06, -1.00283441e-05, 1, 4.47036928e-06, 2.02280489e-06, -4.47034927e-06, 1)
- Part22.Position = Vector3.new(8.6575737, 4.14725161, 17.2230492)
- Part22.Size = Vector3.new(4, 1, 2)
- Part22.BottomSurface = Enum.SurfaceType.Smooth
- Part22.CanCollide = false
- Part22.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh23.Parent = Part22
- SpecialMesh23.MeshId = "rbxassetid://2394487436"
- SpecialMesh23.TextureId = "rbxassetid://2394487469"
- SpecialMesh23.MeshType = Enum.MeshType.FileMesh
- Motor6D24.Name = "guns"
- Motor6D24.Parent = Part22
- Motor6D24.C0 = CFrame.new(-0.766331673, 3.96404672, 0.0761814117, -0.998881459, -0.00275489478, 0.0472055525, -0.00364242308, 0.999818146, -0.018725656, -0.0471453629, -0.0188766532, -0.998709679)
- Motor6D24.Part0 = Part34
- Motor6D24.Part1 = Part22
- Motor6D24.part1 = Part22
- Part25.Name = "Left3"
- Part25.Parent = Model0
- Part25.CFrame = CFrame.new(7.941082, 0.849091232, 17.1201382, 0.997253358, 0.00228923932, 0.0740333945, 0.0615540221, 0.530335009, -0.845551074, -0.0411981754, 0.847785234, 0.528737187)
- Part25.Position = Vector3.new(7.941082, 0.849091232, 17.1201382)
- Part25.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part25.Size = Vector3.new(1.06399989, 1.21400011, 1)
- Part25.BottomSurface = Enum.SurfaceType.Smooth
- Part25.BrickColor = BrickColor.new("Dark stone grey")
- Part25.TopSurface = Enum.SurfaceType.Smooth
- Part25.brickColor = BrickColor.new("Dark stone grey")
- SpecialMesh26.Parent = Part25
- SpecialMesh26.MeshId = "rbxassetid://2674954472"
- SpecialMesh26.MeshType = Enum.MeshType.FileMesh
- Motor6D27.Name = "Left"
- Motor6D27.Parent = Part25
- Motor6D27.C0 = CFrame.new(-0.0464468002, 0.67101717, 0.275009155, -0.998251557, 0.036276184, -0.0466715693, 0.0586920716, 0.514350891, -0.855569243, -0.00703121722, -0.856812298, -0.515580595)
- Motor6D27.Part0 = Part34
- Motor6D27.Part1 = Part25
- Motor6D27.part1 = Part25
- Part28.Name = "Left2"
- Part28.Parent = Model0
- Part28.CFrame = CFrame.new(7.93966532, 2.63724637, 17.1389465, 0.990739763, 0.0479208566, 0.127037451, 0.104117133, 0.332397401, -0.937375247, -0.0871467441, 0.941921234, 0.324329853)
- Part28.Orientation = Vector3.new(69.6200027, 21.3899994, 17.3899994)
- Part28.Position = Vector3.new(7.93966532, 2.63724637, 17.1389465)
- Part28.Rotation = Vector3.new(70.9100037, 7.30000019, -2.76999998)
- Part28.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part28.Size = Vector3.new(1.080001, 1.74999952, 1.40000045)
- Part28.BottomSurface = Enum.SurfaceType.Smooth
- Part28.BrickColor = BrickColor.new("Dark stone grey")
- Part28.Material = Enum.Material.SmoothPlastic
- Part28.TopSurface = Enum.SurfaceType.Smooth
- Part28.brickColor = BrickColor.new("Dark stone grey")
- SpecialMesh29.Parent = Part28
- SpecialMesh29.MeshId = "rbxassetid://2674953990"
- SpecialMesh29.MeshType = Enum.MeshType.FileMesh
- Motor6D30.Name = "Left"
- Motor6D30.Parent = Part28
- Motor6D30.C0 = CFrame.new(-0.0490517616, 2.45849919, 0.222530365, -0.994031012, -0.00431757048, -0.109013051, 0.102131717, 0.314520448, -0.943740666, 0.0383615158, -0.949240863, -0.312202096)
- Motor6D30.Part0 = Part34
- Motor6D30.Part1 = Part28
- Motor6D30.part1 = Part28
- Part31.Name = "Left1"
- Part31.Parent = Model0
- Part31.CFrame = CFrame.new(7.93524837, 1.78427327, 17.1288853, 0.997013807, 0.0197377987, 0.0746622607, -0.0739332959, -0.0353914127, 0.996635377, 0.0223137438, -0.999178648, -0.0338264406)
- Part31.Orientation = Vector3.new(-85.3000031, 114.370003, -115.580002)
- Part31.Position = Vector3.new(7.93524837, 1.78427327, 17.1288853)
- Part31.Rotation = Vector3.new(-91.9400024, 4.28000021, -1.13)
- Part31.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part31.Size = Vector3.new(1.06399989, 1.61400008, 2)
- Part31.BottomSurface = Enum.SurfaceType.Smooth
- Part31.BrickColor = BrickColor.new("Dark stone grey")
- Part31.TopSurface = Enum.SurfaceType.Smooth
- Part31.brickColor = BrickColor.new("Dark stone grey")
- SpecialMesh32.Parent = Part31
- SpecialMesh32.MeshId = "rbxassetid://2674953677"
- SpecialMesh32.MeshType = Enum.MeshType.FileMesh
- Motor6D33.Name = "Left"
- Motor6D33.Parent = Part31
- Motor6D33.C0 = CFrame.new(-0.0427737236, 1.60588622, 0.24889183, -0.994642377, -0.0667833462, -0.0789109021, -0.0779592767, -0.0167419147, 0.996816158, -0.0678918064, 0.997627079, 0.0114458334)
- Motor6D33.Part0 = Part34
- Motor6D33.Part1 = Part31
- Motor6D33.part1 = Part31
- Part34.Name = "Left4"
- Part34.Parent = Model0
- Part34.Transparency = 1
- Part34.CFrame = CFrame.new(7.91008949, 0.183260918, 17.4095535, -0.998881578, -0.00363235851, -0.0471435338, -0.00274466677, 0.999818146, -0.0188806448, 0.0472035445, -0.0187301338, -0.998709679)
- Part34.Orientation = Vector3.new(1.08000004, -177.300003, -0.159999996)
- Part34.Position = Vector3.new(7.91008949, 0.183260918, 17.4095535)
- Part34.Rotation = Vector3.new(178.919998, -2.70000005, 179.789993)
- Part34.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part34.Size = Vector3.new(1.080001, 0.310000122, 1.40000045)
- Part34.BottomSurface = Enum.SurfaceType.Smooth
- Part34.BrickColor = BrickColor.new("Dark stone grey")
- Part34.Material = Enum.Material.SmoothPlastic
- Part34.TopSurface = Enum.SurfaceType.Smooth
- Part34.brickColor = BrickColor.new("Dark stone grey")
- SpecialMesh35.Parent = Part34
- SpecialMesh35.MeshId = "rbxassetid://2674959759"
- SpecialMesh35.MeshType = Enum.MeshType.FileMesh
- for i,v in pairs(Model0:GetChildren()) do
- v.CanCollide = false
- pcall(function() v:MakeJoints() end)
- end
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = char
- base = Part4
- ljoystick = Motor6D15
- rjoystick = Motor6D21
- gun = Part22
- foot = Part34
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- Motor6D223 = Instance.new("Motor6D")
- foo3 = Instance.new("Part")
- foo3.Parent =Model0
- foo3.CanCollide =false
- foo3.brickColor = BrickColor.new("Dark stone grey")
- foo3.Size = Vector3.new(1.080001, 0.310000122, 1.40000045)
- Motor6D223.Parent = foo3
- Motor6D223.Part0 = Part25
- Motor6D223.Part1 = foo3
- Motor6D223.C0 = CFrame.new(0,-.55,-0.4)
- eeee = Instance.new("SpecialMesh")
- eeee.Parent = foo3
- eeee.MeshId = "rbxassetid://2674959759"
- eeee.MeshType = Enum.MeshType.FileMesh
- Motor6D224 = Instance.new("Motor6D")
- foo1 = Instance.new("Part")
- foo1.Parent =Model0
- foo1.CanCollide =false
- foo1.brickColor = BrickColor.new("Dark stone grey")
- foo1.Size = Vector3.new(1.080001, 0.310000122, 1.40000045)
- Motor6D224.Parent = foo1
- Motor6D224.Part0 = Part16
- Motor6D224.Part1 = foo1
- Motor6D224.C0 = CFrame.new(0,-.55,-0.4)
- eeee1 = Instance.new("SpecialMesh")
- eeee1.Parent = foo1
- eeee1.MeshId = "rbxassetid://2674959759"
- eeee1.MeshType = Enum.MeshType.FileMesh
- sine = 0
- attacking = false
- hum.Animator.Parent = nil
- function ray(pos, dir, rang, ignoredesc)
- return workspace:FindPartOnRay(Ray.new(pos, dir.unit * rang), ignoredesc)
- end
- function swait(num)
- if num == 0 or num == nil then
- game:service("RunService").Stepped:wait(0)
- else
- for i = 0, num do
- game:service("RunService").Stepped:wait(0)
- end
- end
- end
- function ray2(startpos, endpos, distance, ignore)
- local dir = CFrame.new(startpos,endpos).lookVector
- return ray(startpos, dir, distance, ignore)
- end
- coroutine.wrap(function()
- while true do
- swait()
- TextLabel1.Text = "Ammo :"..shots.."/140"
- end
- end)()
- local Create = LoadLibrary("RbxUtility").Create
- function so(id,par,pit,vol)
- local sou = Instance.new("Sound", par or workspace)
- if par == char then
- sou.Parent = char.Torso
- end
- sou.Volume = vol
- sou.Pitch = pit or 1
- sou.SoundId = "rbxassetid://" .. id
- sou.PlayOnRemove = true
- sou:Destroy()
- end
- w = Instance.new("Weld")
- w.Parent = torso
- w.Part0 = torso
- w.Part1 = base
- w.C0 = CFrame.Angles(math.rad(180),math.rad(0),0)
- w.C1 = CFrame.new(0,-1.15,0)
- function rayCast(Position, Direction, Range, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
- end
- function FindNearestTorso(Position, Distance, SinglePlayer)
- if SinglePlayer then
- return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance
- end
- local List = {}
- for i, v in pairs(workspace:GetDescendants()) do
- if v:IsA("Model") then
- if v:findFirstChild("Head") then
- if v ~= char then
- if (v.Head.Position - Position).magnitude <= Distance then
- table.insert(List, v)
- end
- end
- end
- end
- end
- return List
- end
- EffectModel = Create("Model"){
- Parent = char,
- Name = "Effects",
- }
- --Effect Functions--
- Effects = {
- Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor)
- local p = Instance.new("Part",EffectModel)
- p.BrickColor = BrickColor.new(colour)
- p.Size = partsize
- p.Anchored = true
- p.CanCollide = false
- p.Material = matr
- p.CFrame = cf
- if inverse == true then
- p.Transparency = 1
- else
- p.Transparency = 0
- end
- local m = Instance.new("BlockMesh",p)
- m.Scale = meshstart
- coroutine.wrap(function()
- for i=0,1,factor do
- swait()
- if inverse == true then
- p.Transparency = 1-i
- else
- p.Transparency = i
- end
- m.Scale = m.Scale + meshadd
- if spin == true then
- p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- end
- end
- p:Destroy()
- end)()
- return p
- end,
- Sphere = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
- local p = Instance.new("Part",EffectModel)
- p.BrickColor = BrickColor.new(colour)
- p.Size = partsize
- p.Anchored = true
- p.CanCollide = false
- p.Material = matr
- p.CFrame = cf
- if inverse == true then
- p.Transparency = 1
- else
- p.Transparency = 0
- end
- local m = Instance.new("SpecialMesh",p)
- m.MeshType = "Sphere"
- m.Scale = meshstart
- coroutine.wrap(function()
- for i=0,1,factor do
- swait()
- if inverse == true then
- p.Transparency = 1-i
- else
- p.Transparency = i
- end
- m.Scale = m.Scale + meshadd
- end
- p:Destroy()
- end)()
- return p
- end,
- Cylinder = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
- local p = Instance.new("Part",EffectModel)
- p.BrickColor = BrickColor.new(colour)
- p.Size = partsize
- p.Anchored = true
- p.CanCollide = false
- p.Material = matr
- p.CFrame = cf
- if inverse == true then
- p.Transparency = 1
- else
- p.Transparency = 0
- end
- local m = Instance.new("CylinderMesh",p)
- m.Scale = meshstart
- coroutine.wrap(function()
- for i=0,1,factor do
- swait()
- if inverse == true then
- p.Transparency = 1-i
- else
- p.Transparency = i
- end
- m.Scale = m.Scale + meshadd
- end
- p:Destroy()
- end)()
- return p
- end,
- Wave = function(cf,meshstart,meshadd,colour,spin,inverse,factor)
- local p = Instance.new("Part",EffectModel)
- p.BrickColor = BrickColor.new(colour)
- p.Size = Vector3.new()
- p.Anchored = true
- p.CanCollide = false
- p.CFrame = cf
- if inverse == true then
- p.Transparency = 1
- else
- p.Transparency = 0
- end
- local m = Instance.new("SpecialMesh",p)
- m.MeshId = "rbxassetid://20329976"
- m.Scale = meshstart
- coroutine.wrap(function()
- for i=0,1,factor do
- swait()
- if inverse == true then
- p.Transparency = 1-i
- else
- p.Transparency = i
- end
- m.Scale = m.Scale + meshadd
- p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
- end
- p:Destroy()
- end)()
- return p
- end,
- Ring = function(cf,meshstart,meshadd,colour,inverse,factor)
- local p = Instance.new("Part",EffectModel)
- p.BrickColor = BrickColor.new(colour)
- p.Size = Vector3.new()
- p.Anchored = true
- p.CanCollide = false
- p.CFrame = cf
- if inverse == true then
- p.Transparency = 1
- else
- p.Transparency = 0
- end
- local m = Instance.new("SpecialMesh",p)
- m.MeshId = "rbxassetid://3270017"
- m.Scale = meshstart
- coroutine.wrap(function()
- for i=0,1,factor do
- swait()
- if inverse == true then
- p.Transparency = 1-i
- else
- p.Transparency = i
- end
- m.Scale = m.Scale + meshadd
- end
- p:Destroy()
- end)()
- return p
- end,
- Meshed = function(cf,meshstart,meshadd,colour,meshid,textid,spin,inverse,factor)
- local p = Instance.new("Part",EffectModel)
- p.BrickColor = BrickColor.new(colour)
- p.Size = Vector3.new()
- p.Anchored = true
- p.CanCollide = false
- p.CFrame = cf
- if inverse == true then
- p.Transparency = 1
- else
- p.Transparency = 0
- end
- local m = Instance.new("SpecialMesh",p)
- m.MeshId = meshid
- m.TextureId = textid
- m.Scale = meshstart
- coroutine.wrap(function()
- for i=0,1,factor do
- swait()
- if inverse == true then
- p.Transparency = 1-i
- else
- p.Transparency = i
- end
- m.Scale = m.Scale + meshadd
- p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
- end
- p:Destroy()
- end)()
- return p
- end,
- Explode = function(cf,partsize,meshstart,meshadd,matr,colour,move,inverse,factor)
- local p = Instance.new("Part",EffectModel)
- p.BrickColor = BrickColor.new(colour)
- p.Size = partsize
- p.Anchored = true
- p.CanCollide = false
- p.Material = matr
- p.CFrame = cf * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
- if inverse == true then
- p.Transparency = 1
- else
- p.Transparency = 0
- end
- local m = Instance.new("SpecialMesh",p)
- m.MeshType = "Sphere"
- m.Scale = meshstart
- coroutine.wrap(function()
- for i=0,1,factor do
- swait()
- if inverse == true then
- p.Transparency = 1-i
- else
- p.Transparency = i
- end
- m.Scale = m.Scale + meshadd
- p.CFrame = p.CFrame * CFrame.new(0,move,0)
- end
- p:Destroy()
- end)()
- return p
- end,
- }
- function GetDudesTorso(c)
- local torsy = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
- if torsy ~= nil then
- return torsy
- end
- end
- function BodyVel(part,faws)
- local bodyvel = Instance.new("BodyVelocity",part)
- local pep = 10000000
- bodyvel.P = pep
- bodyvel.MaxForce = Vector3.new(pep,pep,pep)
- bodyvel.Velocity = faws
- debby:AddItem(bodyvel,.2)
- end
- function Dmg(dude,dmg,env,faws,trip,efftyp,toim)
- if dude and dude ~= char then
- if dude:FindFirstChild("HITO") then return end
- if toim ~= 0 then
- local debounce = Instance.new("BoolValue",dude)
- debounce.Name = "HITO"
- debby:AddItem(debounce,toim)
- end
- local hum = dude:FindFirstChildOfClass("Humanoid")
- local dam = dmg+math.random(-env,env)
- local teksu = "-"..dam
- if hum then
- local finhel = hum.Health - dam
- if (finhel <= 0 and dude:FindFirstChild("DEATHED")==nil) or dmg == math.huge then
- teksu = "DEATH"
- dude:BreakJoints()
- Instance.new("BoolValue",dude).Name = "DEATHED"
- --local soaa = Instance.new("Sound",dude.Head)
- --local cho = math.random(1,5)
- --if cho == 1 then
- --soaa.SoundId = ""
- --elseif cho == 2 then
- --soaa.SoundId = "rbxassetid://535528169"
- --elseif cho == 3 then
- --soaa.SoundId = "rbxassetid://1080363252"
- --elseif cho == 4 then
- --soaa.SoundId = "rbxassetid://147758746"
- --elseif cho == 5 then
- --soaa.SoundId = "rbxassetid://626777433"
- --soaa.Volume = .2
- --soaa.TimePosition = 1
- --end
- --game:service'Debris':AddItem(soaa,6)
- --soaa:Play()
- end
- if dmg ~= math.huge then
- hum.Health = hum.Health - dam
- end
- end
- coroutine.wrap(function()
- local naeeym2 = Instance.new("BillboardGui",dude)
- naeeym2.Size = UDim2.new(0,100,0,40)
- naeeym2.StudsOffset = Vector3.new(0,3,0)
- naeeym2.Adornee = dude:FindFirstChild("Head")
- naeeym2.Name = "TalkingBillBoard"
- local tecks2 = Instance.new("TextLabel",naeeym2)
- tecks2.BackgroundTransparency = 1
- tecks2.BorderSizePixel = 0
- tecks2.Text = teksu
- tecks2.Font = "Fantasy"
- tecks2.TextSize = 24
- tecks2.TextStrokeTransparency = 0
- tecks2.TextColor3 = Color3.new(1,1,1)
- tecks2.TextStrokeColor3 = Color3.new(0,0,0)
- tecks2.Size = UDim2.new(1,0,0.5,0)
- swait(10)
- for i = 0,1,.05 do
- swait()
- tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
- tecks2.TextStrokeTransparency = i
- tecks2.TextTransparency = i
- end
- naeeym2:Destroy()
- end)()
- local torsy = GetDudesTorso(dude)
- if torsy then
- local amtt = dam/5
- if amtt > 30 then
- amtt = 30
- end
- for i=1,amtt do
- local blp = Instance.new("Part",EffectModel)
- blp.Size = Vector3.new(.3,.3,.3)
- blp.BrickColor = BrickColor.Random()
- blp.CFrame = torsy.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- blp.Velocity = torsy.CFrame.lookVector*math.random(-8,-8) + torsy.CFrame.rightVector*math.random(-8,8) + Vector3.new(0,math.random(0,5),0)
- blp.RotVelocity = Vector3.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))
- --local blm = Instance.new("SpecialMesh",blp)
- --blm.MeshType = "Sphere"
- coroutine.wrap(function()
- swait(10)
- blp.Orientation = Vector3.new(0,blp.Orientation.y,0)
- for i=0,1,.1 do
- swait()
- blp.Transparency = i
- blp.Size = blp.Size + Vector3.new(.05,-.05,.05)
- end
- blp:Destroy()
- end)()
- end
- if efftyp == "Blunt" then
- puncheff(torsy)
- elseif efftyp == "Sharp" then
- slasheff(torsy)
- elseif efftyp == "Shot" then
- end
- if faws ~= 0 then
- BodyVel(torsy,faws)
- end
- if trip == true then
- torsy.CFrame = torsy.CFrame * CFrame.Angles(math.rad(-90),0,0)
- torsy.RotVelocity = Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- end
- end
- end
- end
- function MagnitudeDmg(par,magni,dmg,env,faws,trip,efftyp,toim)
- for _, c in pairs(workspace:GetDescendants()) do
- local hum = c:FindFirstChildOfClass("Humanoid")
- if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
- local head = GetDudesTorso(c)
- if head ~= nil then
- local targ = head.Position - par.Position
- local mag = targ.magnitude
- if magni >= mag and c ~= char then
- Dmg(c,dmg,env,faws,trip,efftyp,toim)
- end
- end
- end
- end
- end
- function puncheff(par)
- if par.Parent:FindFirstChild("DebounceHit")==nil then
- so(386946017,par,math.random(80,120)/100,1)
- Effects.Sphere(par.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(.1,.1,.1),"Neon","White",false,.1)
- end
- end
- function slasheff(par)
- if par.Parent:FindFirstChild("DebounceHit")==nil then
- local cho = math.random(1,3)
- so(444667859,par,1,1)
- Effects.Sphere(par.CFrame*CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360)),Vector3.new(.5,.5,.5),Vector3.new(1,0,1),Vector3.new(-.1,5,-.1),"Neon","White",false,.1)
- end
- end
- MuzzleFlash = Instance.new("Part")
- MuzzleFlash.Parent = gun
- MuzzleFlash.CanCollide = false
- MuzzleFlash.Size = Vector3.new(1,1,1)
- MuzzleFlash.Transparency = 1
- w2 = Instance.new("Weld")
- w2.Part0 = gun
- w2.Parent = gun
- w2.Part1 = MuzzleFlash
- w2.C0 = CFrame.new(2.5,0,0.6)
- MuzzleFlash2 = Instance.new("Part")
- MuzzleFlash2.Parent = gun
- MuzzleFlash2.CanCollide = false
- MuzzleFlash2.Size = Vector3.new(1,1,1)
- MuzzleFlash2.Transparency = 1
- w22 = Instance.new("Weld")
- w22.Part0 = gun
- w22.Parent = gun
- w22.Part1 = MuzzleFlash2
- w22.C0 = CFrame.new(-2.5,0,0.6)
- function gunreload()
- local bolting = false
- if shots < 1 then
- bolting = true
- end
- so(769380905,torso,1,1)
- shots = shots+140
- end
- local fire = Instance.new("Sound")
- fire.Parent = gun
- fire.SoundId = "rbxassetid://1583819337"
- fire.Volume = 1.2
- function gunshoot()
- attack = true
- repeat
- wait(.1)
- local part, pos = rayCast(MuzzleFlash.Position,((Mouse.Hit.p+Vector3.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)) - MuzzleFlash.Position),200,char)
- local aimo = Instance.new("Part",Camera)
- aimo.Anchored = true
- aimo.Size = Vector3.new()
- aimo.Transparency = 1
- aimo.CanCollide = false
- aimo.CFrame = CFrame.new(pos)
- Effects.Block(CFrame.new((MuzzleFlash.Position + pos)/2,pos),Vector3.new(.2,.2,(MuzzleFlash.Position - pos).magnitude),Vector3.new(0,0,1),Vector3.new(.1,.1,0),"Neon","Bright yellow",false,false,.1)
- MagnitudeDmg(aimo,3,5,2,hrp.CFrame.lookVector*2,false,"Shot",.1)
- local part, pos = rayCast(MuzzleFlash2.Position,((Mouse.Hit.p+Vector3.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)) - MuzzleFlash2.Position),200,char)
- local aimo = Instance.new("Part",Camera)
- aimo.Anchored = true
- aimo.Size = Vector3.new()
- aimo.Transparency = 1
- aimo.CanCollide = false
- aimo.CFrame = CFrame.new(pos)
- Effects.Block(CFrame.new((MuzzleFlash2.Position + pos)/2,pos),Vector3.new(.2,.2,(MuzzleFlash2.Position - pos).magnitude),Vector3.new(0,0,1),Vector3.new(.1,.1,0),"Neon","Bright yellow",false,false,.1)
- MagnitudeDmg(aimo,3,5,2,hrp.CFrame.lookVector*2,false,"Shot",.1)
- fire:Play()
- shots = shots - 2
- aimo:Destroy()
- aimo:Destroy()
- if shots <= 0 then
- gunreload()
- end
- until zhold == false
- attack = false
- end
- zhold = false
- Mouse.Button1Down:connect(function()
- zhold = true
- if attack == false then
- gunshoot()
- end
- end)
- Mouse.Button1Up:connect(function()
- zhold = false
- end)
- checks1 = coroutine.wrap(function() -------Checks
- while true do
- local hf = ray(hrp.Position,(CFrame.new(hrp.Position,hrp.Position+Vector3.new(0,-1,0))).lookVector,3*3,char)
- if hrp.Velocity.y > 1 and hf == nil then
- position = "Jump"
- elseif hrp.Velocity.y < -1 and hf == nil then
- position = "Falling"
- elseif hrp.Velocity.Magnitude < 2 and hf ~= nil then
- position = "Idle"
- elseif hrp.Velocity.Magnitude > 2 and hf ~= nil then
- position = "Walking"
- end
- wait()
- end
- end)
- checks1()
- hum.WalkSpeed = 12
- hum.JumpPower = 70
- lemotor = Motor6D27 -- lower left leg
- lemotor2 = Motor6D30 -- upper left leg
- lemotor3 = Motor6D33 -- knee?
- fmotor = Motor6D223 -- left foot
- remotor = Motor6D3 -- right foot
- remotor2 = Motor6D9 -- upper leg right
- rmottor4 = Motor6D18 -- lower leg right
- remotor3 = Motor6D12 -- knee
- local anims = coroutine.wrap(function()
- while true do
- swait()
- sine = sine + 1
- if position == "Idle" and attacking == false then
- lshoulder.C0 = lshoulder.C0:lerp(lshoulder.C1 *CFrame.new(-0.3,0 + .02 * math.cos(sine/10),1.5) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(-55)),.1)
- ljoystick.C1 = ljoystick.C1:lerp(ljoystick.C0 *CFrame.new(0.75,-4.9,-1.3) *CFrame.Angles(math.rad(0),math.rad(180),math.rad(0)),.1)
- rshoulder.C0 = rshoulder.C0:lerp(rshoulder.C1 *CFrame.new(0.3,0 + .02 * math.cos(sine/10),1.5) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(55)),.1)
- rjoystick.C1 = rjoystick.C1:lerp(rjoystick.C0 *CFrame.new(-2.2,-4.9,-1.3) *CFrame.Angles(math.rad(0),math.rad(180),math.rad(0)),.1)
- rootjoint.C0 = rootjoint.C0:lerp(rootjoint.C1 *CFrame.new(0,0,0+.02 * math.cos(sine/10)) *CFrame.Angles(0,0,0),.1)
- neck.C0 = neck.C0:lerp(neck.C1 *CFrame.new(0,0,1.5+.01 * math.cos(sine/10)) *CFrame.Angles(math.rad(1 - .5 * math.cos(sine/10)),0,0),.1)
- lhip.C0 = lhip.C0:lerp(lhip.C1 *CFrame.new(0,-2,.5+.01 * math.cos(sine/10)) *CFrame.Angles(0,math.rad(5),math.rad(-65)),.1)
- rhip.C0 = rhip.C0:lerp(rhip.C1 *CFrame.new(0,-2,.5+.01 * math.cos(sine/10)) *CFrame.Angles(0,math.rad(-5),math.rad(65)),.1)
- lemotor.C0 = lemotor.C0:lerp(lemotor.C1 *CFrame.new(0,0.67,0.23) *CFrame.Angles(math.rad(-0),math.rad(5),math.rad(0)),.1)
- lemotor2.C0 = lemotor2.C0:lerp(lemotor2.C1 *CFrame.new(-0.1,2.5 - 0.01 * math.cos(sine/10),0.3) *CFrame.Angles(math.rad(-5),math.rad(5),math.rad(0)),.1)
- lemotor3.C0 = lemotor3.C0:lerp(lemotor3.C1 *CFrame.new(0,1.5 - 0.01 * math.cos(sine/10),.3) *CFrame.Angles(math.rad(-5),math.rad(5),math.rad(0)),.1)
- rmottor4.C0 = rmottor4.C0:lerp(rmottor4.C1 *CFrame.new(-1.6,0.57,.25) *CFrame.Angles(math.rad(-0),math.rad(5),math.rad(0)),.1)
- remotor2.C0 = remotor2.C0:lerp(remotor2.C1 *CFrame.new(-1.6,2.5 - 0.01 * math.cos(sine/10),.3) *CFrame.Angles(math.rad(-5),math.rad(5),math.rad(0)),.1)
- remotor3.C0 = remotor3.C0:lerp(remotor3.C1 *CFrame.new(-1.6,1.5 - 0.01 * math.cos(sine/10),.3) *CFrame.Angles(math.rad(-5),math.rad(5),math.rad(0)),.1)
- elseif position == "Walking" and attacking == false then
- lshoulder.C0 = lshoulder.C0:lerp(lshoulder.C1 *CFrame.new(-0.3 - .3 * math.cos(sine/10),0 + .02 * math.cos(sine/10),1.5) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(-55)),.1)
- ljoystick.C1 = ljoystick.C1:lerp(ljoystick.C0 *CFrame.new(0.75,-4.9,-1.3) *CFrame.Angles(math.rad(0- 5 * math.cos(sine/10)),math.rad(180),math.rad(0)),.1)
- rshoulder.C0 = rshoulder.C0:lerp(rshoulder.C1 *CFrame.new(0.3 - .3 * math.cos(sine/10),0 + .02 * math.cos(sine/10),1.5) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(55)),.1)
- rjoystick.C1 = rjoystick.C1:lerp(rjoystick.C0 *CFrame.new(-2.2,-4.9,-1.3) *CFrame.Angles(math.rad(0+ 5 * math.cos(sine/10)),math.rad(180),math.rad(0)),.1)
- rootjoint.C0 = rootjoint.C0:lerp(rootjoint.C1 *CFrame.new(0,0,0+.05 * math.cos(sine/10)) *CFrame.Angles(0,0 + .1 * math.cos(sine/10),math.rad(0 + .05 * math.cos(sine/5))),.1)
- neck.C0 = neck.C0:lerp(neck.C1 *CFrame.new(0,0,1.5+.01 * math.cos(sine/10)) *CFrame.Angles(math.rad(0),0,0),.1)
- lemotor.C0 = lemotor.C0:lerp(lemotor2.C1 *CFrame.new(0,0.67- 0.01 * math.cos(sine/10),0.23- 1 * math.cos(sine/10)) *CFrame.Angles(math.rad(-0- 20 * math.cos(sine/10)),math.rad(5),math.rad(0)),.1)
- lemotor2.C0 = lemotor2.C0:lerp(lemotor2.C1 *CFrame.new(0,2.5 - 0.01 * math.cos(sine/10),0.3- 1 * math.cos(sine/10)) *CFrame.Angles(math.rad(-5- 10 * math.cos(sine/10)),math.rad(5),math.rad(0)),.1)
- lemotor3.C0 = lemotor3.C0:lerp(lemotor2.C1 *CFrame.new(0,1.5 - 0.01 * math.cos(sine/10),.3- 1* math.cos(sine/10)) *CFrame.Angles(math.rad(-5),math.rad(5),math.rad(0)),.1)
- fmotor.C1 = fmotor.C1:lerp(CFrame.new(0,.1,-0.2) *CFrame.Angles(math.rad(10),math.rad(5),math.rad(0)),.1)
- rmottor4.C0 = rmottor4.C0:lerp(remotor2.C1 *CFrame.new(-1.6,0.67- 0.01 * math.cos(sine/10),-0.23+ 1 * math.cos(sine/10)) *CFrame.Angles(math.rad(-0- 20 * math.cos(sine/10)),math.rad(5),math.rad(0)),.1)
- remotor2.C0 = remotor2.C0:lerp(remotor2.C1 *CFrame.new(-1.6,2.5 - 0.01 * math.cos(sine/10),-0.3+ 1 * math.cos(sine/10)) *CFrame.Angles(math.rad(-5- 10 * math.cos(sine/10)),math.rad(5),math.rad(0)),.1)
- remotor3.C0 = remotor3.C0:lerp(remotor2.C1 *CFrame.new(-1.6,1.5 - 0.01 * math.cos(sine/10),-.3+ 1 * math.cos(sine/10)) *CFrame.Angles(math.rad(-5),math.rad(5),math.rad(0)),.1)
- remotor.C1 = remotor.C1:lerp(CFrame.new(0,.1,-0.2) *CFrame.Angles(math.rad(10),math.rad(-5),math.rad(0)),.1)
- lhip.C0 = lhip.C0:lerp(lhip.C1 *CFrame.new(0,-2,.5+.01 * math.cos(sine/10)) *CFrame.Angles(0,math.rad(5),math.rad(-65)),.1)
- rhip.C0 = rhip.C0:lerp(rhip.C1 *CFrame.new(0,-2,.5+.01 * math.cos(sine/10)) *CFrame.Angles(0,math.rad(-5),math.rad(65)),.1)
- elseif position == "Jump" and attacking == false then
- lshoulder.C0 = lshoulder.C0:lerp(lshoulder.C1 *CFrame.new(-.3,0 + .02 * math.cos(sine/10),1.5) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(-55)),.5)
- ljoystick.C1 = ljoystick.C1:lerp(ljoystick.C0 *CFrame.new(0.75,-4.9,-1.1) *CFrame.Angles(math.rad(25),math.rad(180),math.rad(0)),.5)
- rshoulder.C0 = rshoulder.C0:lerp(rshoulder.C1 *CFrame.new(0.3,0 + .02 * math.cos(sine/10),1.5) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(55)),.5)
- rjoystick.C1 = rjoystick.C1:lerp(rjoystick.C0 *CFrame.new(-2.2,-4.9,-1.1) *CFrame.Angles(math.rad(25),math.rad(180),math.rad(0)),.5)
- rootjoint.C0 = rootjoint.C0:lerp(rootjoint.C1 *CFrame.new(0,0,0+.05 * math.cos(sine/10)) *CFrame.Angles(math.rad(-30),0,0),.5)
- neck.C0 = neck.C0:lerp(neck.C1 *CFrame.new(0,0,1.5+.01 * math.cos(sine/10)) *CFrame.Angles(math.rad(20),0,0),.5)
- lhip.C0 = lhip.C0:lerp(lhip.C1 *CFrame.new(0,-2,.5+.01 * math.cos(sine/10)) *CFrame.Angles(0,math.rad(5),math.rad(-65)),.5)
- rhip.C0 = rhip.C0:lerp(rhip.C1 *CFrame.new(0,-2,.5+.01 * math.cos(sine/10)) *CFrame.Angles(0,math.rad(-5),math.rad(65)),.5)
- lemotor.C0 = lemotor.C0:lerp(lemotor2.C1 *CFrame.new(0,1.67- 0.01 * math.cos(sine/10),0.23- 0.5 * math.cos(sine/10)) *CFrame.Angles(math.rad(-0),math.rad(5),math.rad(0)),.1)
- lemotor2.C0 = lemotor2.C0:lerp(lemotor2.C1 *CFrame.new(0,2.5 - 0.01 * math.cos(sine/10),0.3- 0.5 * math.cos(sine/10)) *CFrame.Angles(math.rad(-30),math.rad(5),math.rad(0)),.1)
- lemotor3.C0 = lemotor3.C0:lerp(lemotor2.C1 *CFrame.new(0,2 - 0.01 * math.cos(sine/10),.3- 0.5 * math.cos(sine/10)) *CFrame.Angles(math.rad(30),math.rad(5),math.rad(0)),.1)
- fmotor.C1 = fmotor.C1:lerp(CFrame.new(0,.1,-0.2) *CFrame.Angles(math.rad(0),math.rad(5),math.rad(0)),.1)
- rmottor4.C0 = rmottor4.C0:lerp(remotor2.C1 *CFrame.new(-1.6,1.67- 0.01 * math.cos(sine/10),0.23- 0.5 * math.cos(sine/10)) *CFrame.Angles(math.rad(-0),math.rad(5),math.rad(0)),.1)
- remotor2.C0 = remotor2.C0:lerp(remotor2.C1 *CFrame.new(-1.6,2.5 - 0.01 * math.cos(sine/10),0.3- 0.5 * math.cos(sine/10)) *CFrame.Angles(math.rad(-30),math.rad(5),math.rad(0)),.1)
- remotor3.C0 = remotor3.C0:lerp(remotor2.C1 *CFrame.new(-1.6,2 - 0.01 * math.cos(sine/10),.3- 0.5 * math.cos(sine/10)) *CFrame.Angles(math.rad(30),math.rad(5),math.rad(0)),.1)
- remotor.C1 = fmotor.C1:lerp(CFrame.new(0,.1,-0.2) *CFrame.Angles(math.rad(0),math.rad(5),math.rad(0)),.1)
- elseif position == "Falling" and attacking == false then
- lshoulder.C0 = lshoulder.C0:lerp(lshoulder.C1 *CFrame.new(-.3,0 + .02 * math.cos(sine/10),1.5) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(-55)),.1)
- ljoystick.C1 = ljoystick.C1:lerp(ljoystick.C0 *CFrame.new(0.75,-4.9,-1.1) *CFrame.Angles(math.rad(25),math.rad(180),math.rad(0)),.1)
- rshoulder.C0 = rshoulder.C0:lerp(rshoulder.C1 *CFrame.new(0.3,0 + .02 * math.cos(sine/10),1.5) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(55)),.1)
- rjoystick.C1 = rjoystick.C1:lerp(rjoystick.C0 *CFrame.new(-2.2,-4.9,-1.1) *CFrame.Angles(math.rad(25),math.rad(180),math.rad(0)),.1)
- rootjoint.C0 = rootjoint.C0:lerp(rootjoint.C1 *CFrame.new(0,0,0+.02 * math.cos(sine/10)) *CFrame.Angles(math.rad(-30),0,0),.1)
- neck.C0 = neck.C0:lerp(neck.C1 *CFrame.new(0,0,1.5+.01 * math.cos(sine/10)) *CFrame.Angles(math.rad(20),0,0),.1)
- lhip.C0 = lhip.C0:lerp(lhip.C1 *CFrame.new(0,-2,.5+.01 * math.cos(sine/10)) *CFrame.Angles(0,math.rad(5),math.rad(-65)),.1)
- rhip.C0 = rhip.C0:lerp(rhip.C1 *CFrame.new(0,-2,.5+.01 * math.cos(sine/10)) *CFrame.Angles(0,math.rad(-5),math.rad(65)),.1)
- lemotor.C0 = lemotor.C0:lerp(lemotor2.C1 *CFrame.new(0,1.67- 0.01 * math.cos(sine/10),0.23) *CFrame.Angles(math.rad(-0),math.rad(5),math.rad(0)),.1)
- lemotor2.C0 = lemotor2.C0:lerp(lemotor2.C1 *CFrame.new(0,2.5 - 0.01 * math.cos(sine/10),0.3) *CFrame.Angles(math.rad(-30),math.rad(5),math.rad(0)),.1)
- lemotor3.C0 = lemotor3.C0:lerp(lemotor2.C1 *CFrame.new(0,2 - 0.01 * math.cos(sine/10),.3) *CFrame.Angles(math.rad(30),math.rad(5),math.rad(0)),.1)
- fmotor.C1 = fmotor.C1:lerp(CFrame.new(0,.1,-0.2) *CFrame.Angles(math.rad(0),math.rad(5),math.rad(0)),.1)
- rmottor4.C0 = rmottor4.C0:lerp(remotor2.C1 *CFrame.new(-1.6,1.67- 0.01 * math.cos(sine/10),0.23) *CFrame.Angles(math.rad(-0),math.rad(5),math.rad(0)),.1)
- remotor2.C0 = remotor2.C0:lerp(remotor2.C1 *CFrame.new(-1.6,2.5 - 0.01 * math.cos(sine/10),0.3) *CFrame.Angles(math.rad(-30),math.rad(5),math.rad(0)),.1)
- remotor3.C0 = remotor3.C0:lerp(remotor2.C1 *CFrame.new(-1.6,2 - 0.01 * math.cos(sine/10),.3) *CFrame.Angles(math.rad(30),math.rad(5),math.rad(0)),.1)
- remotor.C1 = fmotor.C1:lerp(CFrame.new(0,.1,-0.2) *CFrame.Angles(math.rad(0),math.rad(5),math.rad(0)),.1)
- end
- end
- end)
- anims()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement