Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --By Rufus14
- --wait(1.5)
- --owner = game.Players:FindFirstChild(script.Parent.Name)
- NLS([[owner = game:GetService("Players"):findFirstChild(script.Parent.Name)
- remote = owner.Character:WaitForChild("moonmanremote")
- mouse = owner:GetMouse()
- function keys(key)
- key = key:lower()
- if key == "q" then
- remote:FireServer("mothafuckah")
- elseif key == "e" then
- remote:FireServer("nigor")
- elseif key == "r" then
- remote:FireServer("grab")
- elseif key == "t" then
- remote:FireServer("punchgrab")
- end
- end
- function sprinton(key)
- key = key:lower()
- if key:byte() == 48 and owner.Character:findFirstChildOfClass("Humanoid").WalkSpeed > 0 then
- owner.Character:findFirstChildOfClass("Humanoid").WalkSpeed = 30
- end
- end
- function sprintoff(key)
- key = key:lower()
- if key:byte() == 48 and owner.Character:findFirstChildOfClass("Humanoid").WalkSpeed > 0 then
- owner.Character:findFirstChildOfClass("Humanoid").WalkSpeed = 16
- end
- end
- mouse.KeyUp:connect(sprintoff)
- mouse.KeyDown:connect(sprinton)
- mouse.KeyDown:connect(keys)
- local part = Instance.new("Part", owner.Character.Head)
- part.Size = Vector3.new(0.1,0.1,0.1)
- part.Transparency = 1
- part.CanCollide = false
- part.Name = "camera"
- part:BreakJoints()
- local weld = Instance.new("Weld", part)
- weld.Part0 = owner.Character.Head
- weld.Part1 = part
- weld.C0 = CFrame.new(0,0,-1)
- cangoup = true
- rolling = false
- local function rotatecamera()
- while true do
- if (workspace.CurrentCamera.CFrame.p - part.Position).magnitude > 1.7 then
- local cfp = workspace.CurrentCamera.CFrame.p
- game:GetService("RunService").RenderStepped:wait()
- workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame * CFrame.Angles(0,0,(workspace.CurrentCamera.CFrame.p-cfp).magnitude/50)
- else
- game:GetService("RunService").RenderStepped:wait()
- end
- end
- end
- spawn(rotatecamera)
- while game:GetService("RunService").RenderStepped:wait() do
- if (workspace.CurrentCamera.CFrame.p - part.Position).magnitude <= 1.7 then
- game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position,Vector3.new(mouse.Hit.p.x,game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position.y,mouse.Hit.p.z))
- workspace.CurrentCamera.FieldOfView = 80
- if owner.Character.Head:findFirstChild("Cone") then
- for i,v in pairs(owner.Character.Head:findFirstChild("Cone"):GetChildren()) do
- if v.ClassName == "Part" then
- v.Transparency = 1
- end
- end
- end
- for i,v in pairs(owner.Character:GetChildren()) do
- if v.ClassName == "Part" or v.ClassName == "MeshPart" and v.Name ~= "Head" then
- v.LocalTransparencyModifier = 0
- end
- if v.ClassName == "Accessory" then
- v.Handle.Transparency = 1
- end
- end
- if owner.Character.Head:findFirstChildOfClass("Decal") then
- owner.Character.Head:findFirstChildOfClass("Decal").Transparency = 1
- end
- owner.Character.Head.Transparency = 1
- workspace.CurrentCamera.CameraSubject = part
- else
- for i,v in pairs(owner.Character:GetChildren()) do
- if v.ClassName == "Accessory" then
- if owner.Character.Head:findFirstChild("Cone") then
- v.Handle.Transparency = 1
- else
- v.Handle.Transparency = 0
- end
- end
- end
- if owner.Character.Head:findFirstChild("Cone") then
- for i,v in pairs(owner.Character.Head:findFirstChild("Cone"):GetChildren()) do
- if v.ClassName == "Part" then
- v.Transparency = 0
- end
- end
- end
- workspace.CurrentCamera.FieldOfView = 70
- owner.Character.Head.Transparency = 0
- workspace.CurrentCamera.CameraSubject = owner.Character
- if owner.Character.Head:findFirstChild("Cone") then
- if owner.Character.Head:findFirstChildOfClass("Decal") then
- owner.Character.Head:findFirstChildOfClass("Decal").Transparency = 1
- end
- elseif not owner.Character.Head:findFirstChild("Cone") then
- if owner.Character.Head:findFirstChildOfClass("Decal") then
- owner.Character.Head:findFirstChildOfClass("Decal").Transparency = 0
- end
- end
- end
- end]], owner.Character)
- -- Farewell Infortality.
- -- Version: 2.82
- -- Instances:
- local Text = Instance.new("BillboardGui")
- local Name = Instance.new("TextLabel")
- --Properties:
- Text.Name = "Text"
- Text.Parent = owner.Character.Head
- Text.Size = UDim2.new(2, 0, 2, 0)
- Text.StudsOffset = Vector3.new(0, 2, 0)
- Name.Name = "Name"
- Name.Parent = Text
- Name.TextStrokeTransparency = 0
- Name.BackgroundTransparency = 1
- Name.Size = UDim2.new(1, 0, 1, 0)
- Name.Font = Enum.Font.Arial
- Name.Text = owner.Name
- Name.TextColor3 = Color3.new(1, 1, 1)
- Name.TextScaled = true
- Name.TextSize = 3
- Name.TextWrapped = true
- --GUI
- --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"))
- ScreenGui0 = Instance.new("ScreenGui")
- TextButton1 = Instance.new("TextButton")
- TextButton2 = Instance.new("TextButton")
- TextButton3 = Instance.new("TextButton")
- TextButton4 = Instance.new("TextButton")
- ScreenGui0.Name = "nice meme"
- ScreenGui0.Parent = mas
- ScreenGui0.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- TextButton1.Name = "Moonman"
- TextButton1.Parent = ScreenGui0
- TextButton1.Position = UDim2.new(0.799560726, 0, 0.252747834, 0)
- TextButton1.Rotation = -3
- TextButton1.Size = UDim2.new(0, 291, 0, 43)
- TextButton1.BackgroundColor = BrickColor.new("Institutional white")
- TextButton1.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton1.Style = Enum.ButtonStyle.RobloxRoundButton
- TextButton1.Font = Enum.Font.SourceSans
- TextButton1.FontSize = Enum.FontSize.Size14
- TextButton1.Text = "Moonman v2"
- TextButton1.TextColor = BrickColor.new("Really black")
- TextButton1.TextColor3 = Color3.new(0, 0, 0)
- TextButton1.TextScaled = true
- TextButton1.TextSize = 14
- TextButton1.TextWrap = true
- TextButton1.TextWrapped = true
- TextButton2.Name = "bywho"
- TextButton2.Parent = ScreenGui0
- TextButton2.Position = UDim2.new(0.799560726, 0, 0.307866335, 0)
- TextButton2.Rotation = -3
- TextButton2.Size = UDim2.new(0, 291, 0, 28)
- TextButton2.BackgroundColor = BrickColor.new("Institutional white")
- TextButton2.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton2.Style = Enum.ButtonStyle.RobloxRoundButton
- TextButton2.Font = Enum.Font.SourceSans
- TextButton2.FontSize = Enum.FontSize.Size14
- TextButton2.Text = "by Rufus14"
- TextButton2.TextColor = BrickColor.new("Really black")
- TextButton2.TextColor3 = Color3.new(0, 0, 0)
- TextButton2.TextScaled = true
- TextButton2.TextSize = 14
- TextButton2.TextWrap = true
- TextButton2.TextWrapped = true
- TextButton3.Name = "bywhooriginal"
- TextButton3.Parent = ScreenGui0
- TextButton3.Position = UDim2.new(0.765426338, 0, 0.344324648, 0)
- TextButton3.Rotation = -3
- TextButton3.Size = UDim2.new(0, 323, 0, 30)
- TextButton3.BackgroundColor = BrickColor.new("Institutional white")
- TextButton3.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton3.Style = Enum.ButtonStyle.RobloxRoundButton
- TextButton3.Font = Enum.Font.SourceSans
- TextButton3.FontSize = Enum.FontSize.Size14
- TextButton3.Text = "Original Moonman script by MemeNicoi"
- TextButton3.TextColor = BrickColor.new("Really black")
- TextButton3.TextColor3 = Color3.new(0, 0, 0)
- TextButton3.TextScaled = true
- TextButton3.TextSize = 14
- TextButton3.TextWrap = true
- TextButton3.TextWrapped = true
- TextButton4.Name = "suit"
- TextButton4.Parent = ScreenGui0
- TextButton4.Position = UDim2.new(0.799560726, 0, 0.397279054, 0)
- TextButton4.Rotation = -3
- TextButton4.Size = UDim2.new(0, 291, 0, 43)
- TextButton4.BackgroundColor = BrickColor.new("Institutional white")
- TextButton4.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton4.Style = Enum.ButtonStyle.RobloxRoundButton
- TextButton4.Font = Enum.Font.SourceSans
- TextButton4.FontSize = Enum.FontSize.Size14
- TextButton4.Text = "Suit: Off"
- TextButton4.TextColor = BrickColor.new("Really black")
- TextButton4.TextColor3 = Color3.new(0, 0, 0)
- TextButton4.TextScaled = true
- TextButton4.TextSize = 14
- TextButton4.TextWrap = true
- TextButton4.TextWrapped = true
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = owner:findFirstChildOfClass("PlayerGui")
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- --end of GUI
- for i,v in pairs(owner.Character.Head:GetChildren()) do
- if v.ClassName == "Sound" then
- v:destroy()
- end
- end
- for i,v in pairs(owner.Character:GetChildren()) do
- if v.Name == "Sound" and v.ClassName == "Script" then
- v.Disabled = true
- if v:findFirstChildOfClass("LocalScript") then
- v:findFirstChildOfClass("LocalScript").Disabled = true
- end
- end
- end
- function spawnshockwave(position)
- local part = Instance.new("Part", workspace)
- part.CanCollide = false
- part.Anchored = true
- part.Position = position
- local mesh = Instance.new("SpecialMesh", part)
- mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
- part.BrickColor = BrickColor.new("Institutional white")
- local function resize()
- for i = 1,20 do
- mesh.Scale = mesh.Scale + Vector3.new(0.2,0.5,0.2)
- part.Transparency = part.Transparency + 0.05
- part.CFrame = part.CFrame * CFrame.new(0,0.2,0)
- step:wait()
- end
- part:destroy()
- end
- spawn(resize)
- end
- local leftarm = Instance.new("Weld", owner.Character.Torso)
- leftarm.Part0 = owner.Character.Torso
- leftarm.Part1 = owner.Character["Left Arm"]
- leftarm.C0 = CFrame.new(-1.5,0.5,0)
- leftarm.C1 = CFrame.new(0,0.5,0)
- leftarm.Name = "LeftArmWeld"
- local rightarm = Instance.new("Weld", owner.Character.Torso)
- rightarm.Part0 = owner.Character.Torso
- rightarm.Part1 = owner.Character["Right Arm"]
- rightarm.C0 = CFrame.new(1.5,0.5,0)
- rightarm.C1 = CFrame.new(0,0.5,0)
- rightarm.Name = "RightArmWeld"
- local rightleg = Instance.new("Weld", owner.Character.Torso)
- rightleg.Part0 = owner.Character.Torso
- rightleg.Part1 = owner.Character["Right Leg"]
- rightleg.C0 = CFrame.new(0.5,-1,0)
- rightleg.C1 = CFrame.new(0,1,0)
- rightleg.Name = "RightLegWeld"
- local leftleg = Instance.new("Weld", owner.Character.Torso)
- leftleg.Part0 = owner.Character.Torso
- leftleg.Part1 = owner.Character["Left Leg"]
- leftleg.C0 = CFrame.new(-0.5,-1,0)
- leftleg.C1 = CFrame.new(0,1,0)
- leftleg.Name = "LeftLegWeld"
- local head = Instance.new("Weld", owner.Character.Torso)
- head.Part0 = owner.Character.Torso
- head.Part1 = owner.Character.Head
- head.C0 = CFrame.new(0,1,0)
- head.C1 = CFrame.new(0,-0.5,0)
- head.Name = "HeadWeld"
- local humanoidrootpart = Instance.new("Weld", owner.Character.HumanoidRootPart)
- humanoidrootpart.Part0 = owner.Character.HumanoidRootPart
- humanoidrootpart.Part1 = owner.Character.Torso
- humanoidrootpart.Name = "HumanoidRootPartWeld"
- rootpart = owner.Character.HumanoidRootPart
- ownerhumanoid = owner.Character:findFirstChildOfClass("Humanoid")
- step = game:GetService("RunService").Stepped
- anim = "idle"
- sine = 0
- cananimate = true
- suiton = false
- rightarmcolor = owner.Character["Right Arm"].BrickColor
- leftarmcolor = owner.Character["Left Arm"].BrickColor
- rightlegcolor = owner.Character["Right Leg"].BrickColor
- leftlegcolor = owner.Character["Left Leg"].BrickColor
- headcolor = owner.Character["Head"].BrickColor
- torsocolor = owner.Character["Torso"].BrickColor
- local remote = Instance.new("RemoteEvent", owner.Character)
- remote.Name = "moonmanremote"
- local mothabloxuh = Instance.new("Sound", owner.Character.Head)
- mothabloxuh.SoundId = "rbxassetid://143302576"
- mothabloxuh.Volume = 4
- mothabloxuh.PlaybackSpeed = 16
- local nigor = Instance.new("Sound", owner.Character.Head)
- nigor.SoundId = "rbxassetid://3416346714"
- nigor.Volume = 4
- local explosion = Instance.new("Sound", owner.Character.Head)
- explosion.SoundId = "rbxassetid://142070127"
- explosion.Volume = 2
- local goresplatter = Instance.new("Sound", owner.Character.Head)
- goresplatter.SoundId = "rbxassetid://206082327"
- goresplatter.Volume = 2
- grabbed = false
- canuse = true
- function notification(text)
- --Converted with ttyyuu12345's model to script plugin v4
- local 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"))
- local stateguii = Instance.new("ScreenGui")
- local statetextt = Instance.new("TextLabel")
- stateguii.Parent = mas
- stateguii.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- statetextt.Parent = stateguii
- statetextt.Position = UDim2.new(0.222557679, 0, 0.84498024, 0)
- statetextt.Size = UDim2.new(0, 757, 0, 60)
- statetextt.BackgroundColor = BrickColor.new("Institutional white")
- statetextt.BackgroundColor3 = Color3.new(1, 1, 1)
- statetextt.BackgroundTransparency = 1
- statetextt.Font = Enum.Font.Arial
- statetextt.TextStrokeTransparency = 0
- statetextt.FontSize = Enum.FontSize.Size14
- statetextt.TextColor = BrickColor.new("Institutional white")
- statetextt.TextColor3 = Color3.new(0, 0, 0)
- statetextt.TextScaled = true
- statetextt.TextSize = 14
- statetextt.TextWrap = true
- statetextt.TextWrapped = true
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = owner:findFirstChildOfClass("PlayerGui")
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- statetextt.Text = text
- local function disapear()
- wait(2)
- for i = 1,100 do
- statetextt.TextStrokeTransparency = statetextt.TextStrokeTransparency + 0.01
- statetextt.TextTransparency = statetextt.TextTransparency + 0.01
- step:wait()
- end
- stateguii:destroy()
- end
- spawn(disapear)
- end
- grabsound = Instance.new("Sound", rightarm.Part1)
- grabsound.SoundId = "rbxassetid://169380525"
- grabsound.PlayOnRemove = true
- function action(plr, what, message)
- if plr == owner and canuse then
- cananimate = false
- canuse = false
- if what == "mothafuckah" then
- mothabloxuh:Play()
- elseif what == "nigor" then
- nigor:Play()
- elseif what == "grab" and not grabbed then
- grabbed = false
- for i = 0,0.8 , 0.02 do
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1,0) * CFrame.Angles(math.rad(-5),0,math.rad(-5)),i)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1,0) * CFrame.Angles(math.rad(4),0,math.rad(5)),i)
- head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(0,math.rad(80),0),i)
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(0,math.rad(-80),0),i)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(90),0,math.rad(40)),i)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(0,0,math.rad(-40)),i)
- step:wait()
- end
- for i = 0,0.8 , 0.02 do
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1,0) * CFrame.Angles(math.rad(-5),0,math.rad(-5)),i)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1,0) * CFrame.Angles(math.rad(4),0,math.rad(5)),i)
- head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(0,math.rad(-80),0),i)
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(0,math.rad(80),0),i)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1,0.5,-0.5) * CFrame.Angles(math.rad(90),0,math.rad(-10)),i)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0)*CFrame.Angles(0,0,math.rad(-10)),i)
- if i >= 0.4 and i <= 0.42 then
- for i,v in pairs(workspace:GetChildren()) do
- if v.ClassName == "Model" and v ~= owner.Character then
- local vhead = v:findFirstChild("Head")
- local vhumanoid = v:findFirstChildOfClass("Humanoid")
- if vhumanoid and vhead then
- if (vhead.Position - rightarm.Part1.Position).magnitude <= 3 then
- grabbed = true
- local randompitch = math.random(1,6)
- if randompitch == 1 then
- grabsound.Pitch = 1.1
- elseif randompitch == 2 then
- grabsound.Pitch = 1
- elseif randompitch == 3 then
- grabsound.Pitch = 0.9
- elseif randompitch == 4 then
- grabsound.Pitch = 0.8
- elseif randompitch == 5 then
- grabsound.Pitch = 0.7
- elseif randompitch == 6 then
- grabsound.Pitch = 1.2
- end
- grabsound:Play()
- vhumanoid.PlatformStand = true
- --[[if v:findFirstChild("HumanoidRootPart") then
- v.HumanoidRootPart:destroy()
- end]]
- local victimweld = Instance.new("Weld", owner.Character)
- victimweld.Part0 = rightarm.Part1
- victimweld.Part1 = vhead
- victimweld.Name = "guyweld"
- victimweld.C0 = CFrame.Angles(math.pi/2,0,math.pi) * CFrame.new(0,1,0.8)
- end
- end
- end
- end
- end
- step:wait()
- end
- elseif what == "grab" and grabbed then
- grabbed = false
- for i = 0,1 , 0.08 do
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1,0) * CFrame.Angles(0,0,math.rad(-40)),i)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1,0) * CFrame.Angles(math.rad(4),0,math.rad(5)),i)
- head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(0,math.rad(80),0),i)
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(0,math.rad(-80),math.rad(40)),i)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(90),0,math.rad(40)),i)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(0,0,math.rad(-40)),i)
- step:wait()
- end
- for i = 0,0.8 , 0.1 do
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1,0) * CFrame.Angles(math.rad(-60),0,0),i)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,0,-1) * CFrame.Angles(0,0,0),i)
- head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(0,0,0),i)
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,-2,0) * CFrame.Angles(-math.rad(50),math.rad(40),0),i)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(50),0,0),i)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(0,0,math.rad(-40)),i)
- step:wait()
- end
- if owner.Character:findFirstChild("guyweld") then
- if owner.Character:findFirstChild("guyweld").Part1 ~= nil then
- if owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChildOfClass("Humanoid") and owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChild("Head") then
- explosion:Play()
- local function delayed()
- wait(0.1)
- goresplatter:Play()
- end
- spawn(delayed)
- if owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChildOfClass("Humanoid").MaxHealth == math.huge then
- owner.Character:findFirstChild("guyweld").Part1:destroy()
- else
- spawnshockwave(owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChild("Head").Position)
- owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChildOfClass("Humanoid").PlatformStand = false
- --[[local fakehum = Instance.new("Part", owner.Character:findFirstChild("guyweld").Part1.Parent)
- fakehum.Size = Vector3.new(2,2,1)
- fakehum.Name = "HumanoidRootPart"
- fakehum:BreakJoints()
- if owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChild("Torso") then
- fakehum.CFrame = owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChild("Torso").CFrame
- local humweld = Instance.new("Motor6D", fakehum)
- humweld.Part0 = fakehum
- humweld.Name = "RootJoint"
- humweld.Part1 = owner.Character:findFirstChild("guyweld").Part1.Parent.Torso
- elseif owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChild("UpperTorso") then
- fakehum.CFrame = owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChild("UpperTorso").CFrame
- local humweld = Instance.new("Motor6D", fakehum)
- humweld.Part0 = fakehum
- humweld.Name = "RootJoint"
- humweld.Part1 = owner.Character:findFirstChild("guyweld").Part1.Parent.UpperTorso
- end]]
- owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChildOfClass("Humanoid"):TakeDamage(math.random(30,70))
- owner.Character:findFirstChild("guyweld"):destroy()
- end
- end
- end
- end
- elseif what == "punchgrab" then
- if not grabbed then
- notification("Grab someone before using this attack.")
- else
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,math.cos(sine/20)/20,0)*CFrame.Angles(0,math.rad(90),0),1)
- head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(5)+math.sin(sine/25)/25,-math.rad(90),0),1)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(0.5,1,-0.5) * CFrame.Angles(math.pi/2,math.rad(10),math.pi/2),1)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1,0.5,-0.5) * CFrame.Angles(math.rad(90),math.sin(sine/25)/25,math.rad(90)),1)
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/20)/20,0) * CFrame.Angles(0,0,-math.rad(10)),1)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1-math.cos(sine/20)/20,0) * CFrame.Angles(0,0,math.rad(10)),1)
- local randompitch = math.random(1,6)
- if randompitch == 1 then
- grabsound.Pitch = 1.1
- elseif randompitch == 2 then
- grabsound.Pitch = 1
- elseif randompitch == 3 then
- grabsound.Pitch = 0.9
- elseif randompitch == 4 then
- grabsound.Pitch = 0.8
- elseif randompitch == 5 then
- grabsound.Pitch = 0.7
- elseif randompitch == 6 then
- grabsound.Pitch = 1.2
- end
- grabsound:Play()
- if owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChildOfClass("Humanoid") then
- local huma = owner.Character:findFirstChild("guyweld").Part1.Parent:findFirstChildOfClass("Humanoid")
- if huma.Health <= 8 then
- owner.Character:findFirstChild("guyweld"):destroy()
- huma.Health = 0
- grabbed = false
- else
- huma:TakeDamage(8)
- end
- end
- wait()
- end
- end
- cananimate = true
- canuse = true
- end
- end
- remote.OnServerEvent:connect(action)
- function pressedsuit()
- if suiton then
- suiton = false
- TextButton4.Text = "Suit: Off"
- owner.Character["Right Arm"].BrickColor = rightarmcolor
- owner.Character["Left Arm"].BrickColor = leftarmcolor
- owner.Character["Right Leg"].BrickColor = rightlegcolor
- owner.Character["Left Leg"].BrickColor = leftlegcolor
- owner.Character["Head"].BrickColor = headcolor
- owner.Character["Torso"].BrickColor = torsocolor
- for i,v in pairs(owner.Character.Head:GetChildren()) do
- if v.ClassName == "SpecialMesh" and v.Name == "Cone" then
- v:destroy()
- end
- if v.ClassName == "CharacterMesh" or v.ClassName == "Shirt" or v.ClassName == "Pants" then
- v.Parent = owner.Character
- end
- end
- for i,v in pairs(owner.Character:GetChildren()) do
- if v.ClassName == "Part" then
- if v.Name == "Head" then
- if v:findFirstChildOfClass("Decal") then
- v:findFirstChildOfClass("Decal").Transparency = 0
- end
- end
- end
- if v.ClassName == "Accessory" or v.ClassName == "Handle" then
- if v:findFirstChildOfClass("Part") then
- v:findFirstChildOfClass("Part").Transparency = 0
- end
- end
- end
- else
- TextButton4.Text = "Suit: On"
- local cone = Instance.new("SpecialMesh", owner.Character.Head)
- cone.MeshId = "http://www.roblox.com/asset/?id=1033714"
- cone.Scale = Vector3.new(0.8,3,0.8)
- cone.Offset = Vector3.new(0,0.5,0)
- cone.Name = "Cone"
- local eye = Instance.new("Part", cone)
- eye.Shape = "Ball"
- eye.Material = "Neon"
- eye.Size = Vector3.new(0.1,0.1,0.1)
- eye:BreakJoints()
- local eye1weld = Instance.new("Weld", cone)
- eye1weld.Part0 = owner.Character.Head
- eye1weld.Part1 = eye
- eye1weld.C0 = CFrame.new(0.2,0.15,-0.52)
- --
- local eye1 = Instance.new("Part", cone)
- eye1.Shape = "Ball"
- eye1.Material = "Neon"
- eye1.Size = Vector3.new(0.1,0.1,0.1)
- eye1:BreakJoints()
- local eye11weld = Instance.new("Weld", cone)
- eye11weld.Part0 = owner.Character.Head
- eye11weld.Part1 = eye1
- eye11weld.C0 = CFrame.new(-0.2,0.15,-0.52)
- for i,v in pairs(owner.Character:GetChildren()) do
- if v.ClassName == "CharacterMesh" or v.ClassName == "Shirt" or v.ClassName == "Pants" then
- v.Parent = owner.Character.Head
- end
- if v.ClassName == "Part" then
- v.BrickColor = BrickColor.new("Institutional white")
- if v.Name == "Head" then
- if v:findFirstChildOfClass("Decal") then
- v:findFirstChildOfClass("Decal").Transparency = 1
- end
- end
- end
- if v.ClassName == "Accessory" or v.ClassName == "Handle" then
- if v:findFirstChildOfClass("Part") then
- v:findFirstChildOfClass("Part").Transparency = 1
- end
- end
- end
- suiton = true
- end
- end
- TextButton4.MouseButton1Click:connect(pressedsuit)
- function detectwalk()
- while step:wait() do
- if rootpart.Velocity.x >= 2 or rootpart.Velocity.x <= -2 or rootpart.Velocity.z >= 2 or rootpart.Velocity.z <= -2 then
- if ownerhumanoid.FloorMaterial == Enum.Material.Air then
- if rootpart.Velocity.x >= 17 or rootpart.Velocity.x <= -17 or rootpart.Velocity.z >= 17 or rootpart.Velocity.z <= -17 then
- if rootpart.Velocity.y >= 3 then
- anim = "jumprun"
- --print("jumping (running)")
- elseif rootpart.Velocity.y <= -3 then
- anim = "fallrun"
- --("falling (running)")
- end
- else
- if rootpart.Velocity.y >= 3 then
- anim = "jump"
- --print("jumping (walking)")
- elseif rootpart.Velocity.y <= -3 then
- anim = "fall"
- --print("falling (walking)")
- end
- end
- else
- if rootpart.Velocity.x >= 17 or rootpart.Velocity.x <= -17 or rootpart.Velocity.z >= 17 or rootpart.Velocity.z <= -17 then
- anim = "run"
- --print("running")
- else
- anim = "walk"
- --print("walking")
- end
- end
- elseif rootpart.Velocity.x <= 2 or rootpart.Velocity.x >= -2 or rootpart.Velocity.z <= 2 or rootpart.Velocity.z >= -2 then
- if ownerhumanoid.FloorMaterial == Enum.Material.Air then
- if rootpart.Velocity.y >= 3 then
- anim = "jump"
- --print("jumping (standing)")
- elseif rootpart.Velocity.y < -3 then
- anim = "fall"
- --print("falling (standing)")
- end
- else
- anim = "idle"
- --print("standing")
- end
- end
- end
- end
- spawn(detectwalk)
- jumpsine = 0
- local playedfootstep = false
- local footstep = Instance.new("Sound", rootpart)
- footstep.SoundId = "rbxassetid://131436155"
- footstep.Volume = 1.5
- while step:wait() do
- sine = sine + 1
- if cananimate then
- if anim == "idle" then
- if grabbed then
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,math.cos(sine/20)/20,0)*CFrame.Angles(0,math.rad(90),0),0.3)
- head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(5)+math.sin(sine/25)/25,-math.rad(90),0),0.3)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(0,0,-math.rad(30)+math.sin(sine/25)/25),0.3)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(90),math.sin(sine/25)/25,math.rad(90)),0.3)
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/20)/20,0) * CFrame.Angles(0,0,-math.rad(10)),0.3)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1-math.cos(sine/20)/20,0) * CFrame.Angles(0,0,math.rad(10)),0.3)
- else
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,-math.sin(sine/20)/30,-math.sin(sine/20)/10) * CFrame.Angles(0,math.rad(30)+math.rad(3*math.sin(sine/20)),0),0.2)
- head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(-5)+math.rad(-math.sin(sine/20)),math.rad(-30)-math.rad(2*math.sin(sine/20)),0),0.3)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.55+math.sin(sine/20)/20,0.6-math.sin(sine/20)/20,-0.2) * CFrame.Angles(math.rad(4*math.sin(sine/20))+math.rad(math.cos(sine/20)),math.rad(25)+math.rad(2*math.sin(sine/20)),math.rad(10)+math.rad(2*math.sin(sine/20))),0.3)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.55+math.sin(sine/20)/20,0.55-math.sin(sine/20)/15,0.1) * CFrame.Angles(math.rad(4*math.sin(sine/20))+math.rad(math.cos(sine/20)),math.rad(5)-math.rad(5*math.sin(sine/20)),math.rad(-10)+math.rad(2.5*math.sin(sine/20))),0.3)
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1+math.sin(sine/20)/30,math.sin(sine/20)/10) * CFrame.Angles(math.rad(-5),-math.rad(3*math.sin(sine/20)),math.rad(-5)),0.3)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1+math.sin(sine/20)/30,math.sin(sine/20)/10) * CFrame.Angles(math.rad(4),-math.rad(3*math.sin(sine/20)),math.rad(5)),0.3)
- end
- elseif anim == "walk" then
- if grabbed then
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,math.sin(sine/3.5)/20,0) * CFrame.Angles(-0.1+math.cos(sine/3.5)/35,0,rootpart.RotVelocity.y/50),0.3)
- head.C0 = head.C0:lerp(CFrame.new(0,1,-0.05) * CFrame.Angles(-0.1-math.cos(sine/7)/35,rootpart.RotVelocity.y/20,0),0.3)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,-math.sin(sine/7)/10) * CFrame.Angles(math.rad(30*math.sin(sine/7)),0,math.rad(5*-math.cos(sine/3.5))),0.3)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,math.sin(sine/7)/10) * CFrame.Angles(math.rad(150)+math.rad(3*-math.sin(sine/7)),0,math.rad(25)),0.3)
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/7)/4,0) * CFrame.Angles(math.rad(40*-math.sin(sine/7)),0,0),0.3)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/7)/4,0) * CFrame.Angles(math.rad(40*math.sin(sine/7)),0,0),0.3)
- else
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,math.sin(sine/3.5)/20,0) * CFrame.Angles(-0.1+math.cos(sine/3.5)/35,0,rootpart.RotVelocity.y/50),0.3)
- head.C0 = head.C0:lerp(CFrame.new(0,1,-0.05) * CFrame.Angles(-0.1-math.cos(sine/7)/35,rootpart.RotVelocity.y/20,0),0.3)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,-math.sin(sine/7)/10) * CFrame.Angles(math.rad(30*math.sin(sine/7)),0,math.rad(5*-math.cos(sine/3.5))),0.3)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,math.sin(sine/7)/10) * CFrame.Angles(math.rad(30*-math.sin(sine/7)),0,math.rad(5*math.cos(sine/3.5))),0.3)
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/7)/4,0) * CFrame.Angles(math.rad(40*-math.sin(sine/7)),0,0),0.3)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/7)/4,0) * CFrame.Angles(math.rad(40*math.sin(sine/7)),0,0),0.3)
- end
- if (math.cos(sine/7)/4) <= 0.05 and (math.cos(sine/7)/4) >= -0.05 then
- if not playedfootstep then
- playedfootstep = true
- footstep:Play()
- end
- else
- playedfootstep = false
- end
- elseif anim == "jump" then
- if grabbed then
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(math.rad(10),0,0), 0.2)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,math.sin(sine/5)/10) * CFrame.Angles(math.rad(150)+math.rad(3*-math.sin(sine/5)),0,math.rad(25)),0.3)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
- leftleg.C0 = CFrame.new(-0.5,-1,0) * CFrame.Angles(0,0,0)
- rightleg.C0 = CFrame.new(0.5,-1,0) * CFrame.Angles(0,0,0)
- head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(0,0,0),0.3)
- else
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(math.rad(10),0,0), 0.2)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
- leftleg.C0 = CFrame.new(-0.5,-1,0) * CFrame.Angles(0,0,0)
- rightleg.C0 = CFrame.new(0.5,-1,0) * CFrame.Angles(0,0,0)
- head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(0,0,0),0.3)
- end
- elseif anim == "fall" then
- if grabbed then
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(-math.rad(10),0,0), 0.2)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,math.sin(sine/5)/10) * CFrame.Angles(math.rad(150)+math.rad(3*-math.sin(sine/5)),0,math.rad(25)),0.3)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,-math.rad(60)),0.2)
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-0.5,-0.5) * CFrame.Angles(0,0,0),0.2)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-0.5,-0.5) * CFrame.Angles(0,0,0),0.2)
- head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
- else
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(-math.rad(10),0,0), 0.2)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,math.rad(60)),0.2)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,-math.rad(60)),0.2)
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-0.5,-0.5) * CFrame.Angles(0,0,0),0.2)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-0.5,-0.5) * CFrame.Angles(0,0,0),0.2)
- head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
- end
- elseif anim == "jumprun" then
- if grabbed then
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(math.rad(-35),0,0), 0.2)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,math.sin(sine/5)/10) * CFrame.Angles(math.rad(150)+math.rad(3*-math.sin(sine/5)),0,math.rad(25)),0.3)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
- leftleg.C0 = CFrame.new(-0.5,-1,0) * CFrame.Angles(0,0,0)
- rightleg.C0 = CFrame.new(0.5,-1,0) * CFrame.Angles(0,0,0)
- head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(0,0,0),0.3)
- else
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(math.rad(-35),0,0), 0.2)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
- leftleg.C0 = CFrame.new(-0.5,-1,0) * CFrame.Angles(0,0,0)
- rightleg.C0 = CFrame.new(0.5,-1,0) * CFrame.Angles(0,0,0)
- head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(0,0,0),0.3)
- end
- elseif anim == "fallrun" then
- if grabbed then
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(math.rad(35),0,0), 0.2)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,math.sin(sine/5)/10) * CFrame.Angles(math.rad(150)+math.rad(3*-math.sin(sine/5)),0,math.rad(25)),0.3)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,-math.rad(60)),0.2)
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-0.5,-0.5) * CFrame.Angles(0,0,0),0.2)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-0.5,-0.5) * CFrame.Angles(0,0,0),0.2)
- head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
- else
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(math.rad(35),0,0), 0.2)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,math.rad(60)),0.2)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.Angles(-math.rad(10),0,-math.rad(60)),0.2)
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-0.5,-0.5) * CFrame.Angles(0,0,0),0.2)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-0.5,-0.5) * CFrame.Angles(0,0,0),0.2)
- head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(-math.rad(10),0,0),0.2)
- end
- elseif anim == "run" then
- if grabbed then
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,math.sin(sine/2.5)/10,0) * CFrame.Angles(-0.4+3*math.cos(sine/4)/35,0,rootpart.RotVelocity.y/50),0.3)
- head.C0 = head.C0:lerp(CFrame.new(0,1,-0.05) * CFrame.Angles(0.35-3*math.cos(sine/4)/35,rootpart.RotVelocity.y/20,0),0.3)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,-math.sin(sine/5)/3) * CFrame.Angles(0.2+math.rad(80*math.sin(sine/5)),0,math.rad(8*-math.cos(sine/5))),0.3)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,math.sin(sine/5)/10) * CFrame.Angles(math.rad(150)+math.rad(3*-math.sin(sine/5)),0,math.rad(25)),0.3)
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/5)/2.5,0) * CFrame.Angles(math.rad(70*-math.sin(sine/5)),0,0),0.3)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/5)/2.5,0) * CFrame.Angles(math.rad(70*math.sin(sine/5)),0,0),0.3)
- else
- humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,math.sin(sine/2.5)/10,0) * CFrame.Angles(-0.4+3*math.cos(sine/4)/35,0,rootpart.RotVelocity.y/50),0.3)
- head.C0 = head.C0:lerp(CFrame.new(0,1,-0.05) * CFrame.Angles(0.35-3*math.cos(sine/4)/35,rootpart.RotVelocity.y/20,0),0.3)
- leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,-math.sin(sine/5)/3) * CFrame.Angles(0.2+math.rad(80*math.sin(sine/5)),0,math.rad(8*-math.cos(sine/2.5))),0.3)
- rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,math.sin(sine/5)/3) * CFrame.Angles(0.2+math.rad(80*-math.sin(sine/5)),0,math.rad(8*math.cos(sine/2.5))),0.3)
- leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/5)/2.5,0) * CFrame.Angles(math.rad(70*-math.sin(sine/5)),0,0),0.3)
- rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/5)/2.5,0) * CFrame.Angles(math.rad(70*math.sin(sine/5)),0,0),0.3)
- end
- if (math.cos(sine/5)/2.5) <= 0.05 and (math.cos(sine/5)/2.5) >= -0.05 then
- if not playedfootstep then
- playedfootstep = true
- footstep:Play()
- end
- else
- playedfootstep = false
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment