Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RemoteEvent = Instance.new("RemoteEvent")
- RemoteEvent.Name = "PlayerWaiting.."
- RemoteEvent.Parent = game.ReplicatedStorage
- Debris = game:GetService("Debris")
- PhysicsService = game:GetService("PhysicsService")
- TweenService = game:GetService("TweenService")
- success, failure = pcall(function()
- PhysicsService:CreateCollisionGroup("TopLimbs")
- PhysicsService:CreateCollisionGroup("BottomLimbs")
- PhysicsService:CreateCollisionGroup("BignSmallLimbs")
- PhysicsService:CollisionGroupSetCollidable("TopLimbs", "BignSmallLimbs", false)
- PhysicsService:CollisionGroupSetCollidable("BottomLimbs", "BignSmallLimbs", false)
- end)
- interruptingaction = false
- Character = nil
- Playerr = nil
- RShoulder = nil
- LShoulder = nil
- RHip = nil
- LHip = nil
- Neck = nil
- RJoint = nil
- shiftdown = false
- walking = false
- running = false
- action = false
- enabled = false
- shotavailable = true
- GunEquipped = false
- shoutplaying = false
- shooting = false
- music = false
- freefall = false
- grabbed = false
- on = "true"
- Orange = Color3.new(244 / 255, 119 / 255, 70 / 255)
- Gun = Instance.new("Part")
- Gun.Size = Vector3.new(1, 0.4, 1)
- Gun.CanCollide = false
- GunMesh = Instance.new("SpecialMesh")
- GunMesh.MeshId = "http://www.roblox.com/asset/?id=4372594"
- GunMesh.Scale = Vector3.new(1.2, 1.2, 1.2)
- GunMesh.VertexColor = Vector3.new(1, 1, 1)
- GunGradient = Instance.new("Decal")
- GunGradient.Color3 = Color3.new(1, 1, 1)
- GunGradient.Texture = "http://www.roblox.com/asset/?id=156579757"
- GunGradient.Face = "Top"
- GunWeld = Instance.new("Weld")
- GunWeld.C1 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- GunWeld.C0 = CFrame.new(0.00025177002, -1.30018997, 4.76837158e-05, 1.00000012, -4.7326088e-05, 8.3854422e-05, -8.38935375e-05, 9.13441181e-06, 1, -4.73186374e-05, -1, 9.13441181e-06)
- GunMesh.Parent = Gun
- GunGradient.Parent = Gun
- GunWeld.Parent = Gun
- Explosion1 = Instance.new("Part")
- Explosion1.Shape = "Ball"
- Explosion1.Transparency = 0.4
- Explosion1.Color = Color3.new(226/255, 155/255, 64/255)
- Explosion1.Size = Vector3.new(20.65, 20.65, 20.65)
- Explosion1.CanCollide = false
- Explosion1.Material = "SmoothPlastic"
- Explosion1.Anchored = true
- Explosion2 = Instance.new("Part")
- Explosion2.Shape = "Ball"
- Explosion2.Transparency = 0.5
- Explosion2.Color = Color3.new(140/255, 140/255, 22/255)
- Explosion2.Size = Vector3.new(15.05, 15.05, 15.05)
- Explosion2.CanCollide = false
- Explosion2.Material = "SmoothPlastic"
- Explosion2.Anchored = true
- SightModel = Instance.new("Model")
- SightModel.Name = "LaserSight"
- GunHole = Instance.new("Part")
- GunHole.Shape = "Cylinder"
- GunHole.Material = "SmoothPlastic"
- GunHole.Size = Vector3.new(0.15, 0.1, 0.1)
- GunHole.CanCollide = false
- GunHole.Anchored = false
- GunHole.Color = Color3.new(17/255, 17/255, 17/255)
- GunHole.Parent = SightModel
- GunSightBall = Instance.new("Part")
- GunSightBall.Shape = "Ball"
- GunSightBall.Material = "SmoothPlastic"
- GunSightBall.Size = Vector3.new(0.35, 0.35, 0.35)
- GunSightBall.CanCollide = false
- GunSightBall.Anchored = false
- GunSightBall.Color = Color3.new(99/255, 95/255, 98/255)
- GunSightBall.Parent = SightModel
- GunSightCylinder = Instance.new("Part")
- GunSightCylinder.Shape = "Cylinder"
- GunSightCylinder.Material = "SmoothPlastic"
- GunSightCylinder.Size = Vector3.new(0.35, 0.35, 0.35)
- GunSightCylinder.CanCollide = false
- GunSightCylinder.Anchored = false
- GunSightCylinder.Color = Color3.new(99/255, 95/255, 98/255)
- GunSightCylinder.Parent = SightModel
- GunLaser1 = Instance.new("Part")
- GunLaser1.Shape = "Cylinder"
- GunLaser1.Material = "SmoothPlastic"
- GunLaser1.Size = Vector3.new(2.8, 0.05, 0.05)
- GunLaser1.CanCollide = false
- GunLaser1.Anchored = false
- GunLaser1.Color = Color3.new(1, 0, 0)
- GunLaser1.Transparency = 1
- GunLaser1.Parent = SightModel
- GunLaser2 = Instance.new("Part")
- GunLaser2.Shape = "Cylinder"
- GunLaser2.Material = "SmoothPlastic"
- GunLaser2.Size = Vector3.new(0.975, 0.05, 0.05)
- GunLaser2.CanCollide = false
- GunLaser2.Anchored = false
- GunLaser2.Color = Color3.new(1, 0, 0)
- GunLaser2.Transparency = 1
- GunLaser2.Parent = SightModel
- GunLaser3 = Instance.new("Part")
- GunLaser3.Shape = "Cylinder"
- GunLaser3.Material = "SmoothPlastic"
- GunLaser3.Size = Vector3.new(0.975, 0.05, 0.05)
- GunLaser3.CanCollide = false
- GunLaser3.Anchored = false
- GunLaser3.Color = Color3.new(1, 0, 0)
- GunLaser3.Transparency = 1
- GunLaser3.Parent = SightModel
- Laser1Weld = Instance.new("Weld")
- Laser1Weld.C0 = CFrame.new(1.36249876, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Laser1Weld.Part0 = GunHole
- Laser1Weld.Part1 = GunLaser1
- Laser1Weld.Parent = SightModel
- Laser2Weld = Instance.new("Weld")
- Laser2Weld.C0 = CFrame.new(1.88750744, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Laser2Weld.Part0 = GunLaser1
- Laser2Weld.Part1 = GunLaser2
- Laser2Weld.Parent = SightModel
- Laser3Weld = Instance.new("Weld")
- Laser3Weld.C0 = CFrame.new(0.975002289, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Laser3Weld.Part0 = GunLaser2
- Laser3Weld.Part1 = GunLaser3
- Laser3Weld.Parent = SightModel
- HoleWeld = Instance.new("Weld")
- HoleWeld.C0 = CFrame.new(0.125, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- HoleWeld.Part0 = GunSightCylinder
- HoleWeld.Part1 = GunHole
- HoleWeld.Parent = SightModel
- SightBallWeld = Instance.new("Weld")
- SightBallWeld.C0 = CFrame.new(-0.175001144, 5.96046448e-08, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- SightBallWeld.Part0 = GunSightCylinder
- SightBallWeld.Part1 = GunSightBall
- SightBallWeld.Parent = SightModel
- CylinderToGunWeld = Instance.new("Weld")
- CylinderToGunWeld.C0 = CFrame.new(0.0250000954, 0.0750001669, -0.712492466, -8.6274035e-08, 1.75032611e-07, 1, 3.56865471e-08, 1, -1.75032596e-07, -1, 3.56865257e-08, -8.62740421e-08)
- CylinderToGunWeld.Part1 = GunSightCylinder
- CylinderToGunWeld.Parent = SightModel
- Ring = Instance.new("Part")
- Ring.Name = "Ring"
- Ring.Transparency = 0.5
- Ring.Anchored = true
- Ring.CanCollide = false
- Ring.Size = Vector3.new(0.01, 0.01, 0.01)
- RingMesh = Instance.new("SpecialMesh")
- RingMesh.MeshId = "rbxassetid://3270017"
- RingMesh.Scale = Vector3.new(2, 2, 1)
- RingMesh.Parent = Ring
- possibleshotnoise = {"rbxassetid://139469366", "rbxassetid://139469366", "rbxassetid://139469366", "rbxassetid://139469366", "rbxassetid://139469366"}
- possiblefannoise = {"ahh~ soft~", "you're really soft :D", "squishy.. eee..", "squishy~",
- "this is fun~", "so fluffy..", "you're a nice stress reliever..", "can you be my pillow for a day? pleaaase?",
- "i have a lot of feelings now :D", "aaahhhhhhh!", "i don't want to let go..!", "cuteness overload!", "aaaaaaaaaaahhhhh~",
- "soft soft soft..", "i can't stop :D", "i love you!", "fluffy..!"}
- gunraycastignorelist = {}
- walksound = Instance.new("Sound")
- walksound.SoundId = "rbxassetid://2213622028"
- walksound.Name = "Walk"
- walksound.Volume = 2
- cocksound = Instance.new("Sound")
- cocksound.SoundId = "rbxassetid://361550324"
- cocksound.Name = "GunSlide"
- cocksound.Volume = 2
- masksound = Instance.new("Sound")
- masksound.SoundId = "rbxassetid://2706199011"
- masksound.Name = "Mask"
- masksound.Volume = 2
- equipsound = Instance.new("Sound")
- equipsound.SoundId = "rbxassetid://1498950813"
- equipsound.Name = "Equip"
- equipsound.Volume = 2
- explosionsound = Instance.new("Sound")
- explosionsound.SoundId = "rbxassetid://1776706665"
- explosionsound.Volume = 4
- explosionsound.PlayOnRemove = true
- ShotMarker = Instance.new("Sound")
- ShotMarker.Name = "ShotMarker"
- ShotMarker.SoundId = "rbxassetid://296102734"
- ShotMarker.Volume = 3
- ShotMarker.PlayOnRemove = true
- Useless = Instance.new("Sound")
- Useless.Name = "Useless"
- Useless.SoundId = "rbxassetid://3034338716"
- Useless.Volume = 3
- Useless.PlayOnRemove = true
- Kill1 = Instance.new("Sound")
- Kill1.Name = "Kill1"
- Kill1.SoundId = "rbxassetid://449759304"
- Kill1.Volume = 0
- Kill2 = Instance.new("Sound")
- Kill2.Name = "Kill2"
- Kill2.SoundId = "rbxassetid://1854510736"
- Kill2.Volume = 0
- Kill3 = Instance.new("Sound")
- Kill3.Name = "Kill3"
- Kill3.SoundId = "rbxassetid://1278706842"
- Kill3.Volume = 0
- DashJump = Instance.new("Sound")
- DashJump.Name = "DashJump"
- DashJump.SoundId = "rbxassetid://1295417556"
- DashJump.Volume = 2
- SmallSquish = Instance.new("Sound")
- SmallSquish.Name = "SmallSquish"
- SmallSquish.SoundId = "rbxassetid://162180713"
- SmallSquish.Volume = 2
- BigSquish = Instance.new("Sound")
- BigSquish.Name = "BigSquish"
- BigSquish.SoundId = "rbxassetid://1139819274"
- BigSquish.Volume = 1
- BodyFall = Instance.new("Sound")
- BodyFall.Name = "BodyFall"
- BodyFall.SoundId = "rbxassetid://178646271"
- BodyFall.Volume = 2
- Grab = Instance.new("Sound")
- Grab.Name = "Grab"
- Grab.SoundId = "rbxassetid://260411131"
- Grab.Volume = 1.5
- FlashlightClick = Instance.new("Sound")
- FlashlightClick.Name = "FlashClick"
- FlashlightClick.SoundId = "rbxassetid://242135745"
- FlashlightClick.Volume = 4
- YoshisIsland = Instance.new("Sound")
- YoshisIsland.Name = "YoshisIsland"
- YoshisIsland.SoundId = "rbxassetid://152828706"
- YoshisIsland.Volume = 2
- lerpintensity = 0.4
- gunshotdamage = 10
- headshotdamage = 21
- explosionshotdamage = 41
- jumppower = 60
- RemoteEvent.OnServerEvent:Connect(function(player, contact)
- if enabled == false then
- Playerr = player
- repeat
- wait()
- until player.Character ~= nil
- Character = player.Character
- gunraycastignorelist = {Gun, Character}
- if Character.Head:FindFirstChild("Typing") == nil then
- local ClickTyping = Instance.new("Sound")
- ClickTyping.Name = "Typing"
- ClickTyping.Parent = Character.Head
- ClickTyping.SoundId = "rbxassetid://903267862"
- walksound.Parent = Character.Torso
- masksound.Parent = Character.Torso
- equipsound.Parent = Character.Torso
- Kill1.Parent = Character.Head
- Kill2.Parent = Character.Head
- Kill3.Parent = Character.Head
- YoshisIsland.Parent = Character.Torso
- DashJump.Parent = Character.Torso
- BigSquish.Parent = Character.Torso
- SmallSquish.Parent = Character.Torso
- BodyFall.Parent = Character.Torso
- Grab.Parent = Character.Torso
- FlashlightClick.Parent = Gun
- end
- Character.Humanoid.BreakJointsOnDeath = false
- Character.Humanoid.JumpPower = jumppower
- RemoteEvent.Name = contact
- RShoulder = Character.Torso["Right Shoulder"]
- LShoulder = Character.Torso["Left Shoulder"]
- RHip = Character.Torso["Right Hip"]
- LHip = Character.Torso["Left Hip"]
- Neck = Character.Torso.Neck
- RJoint = Character.HumanoidRootPart.RootJoint
- GunWeld.Part0 = Character["Right Arm"]
- GunWeld.Part1 = Gun
- CylinderToGunWeld.Part0 = Gun
- SightModel.Parent = Gun
- for i, v in pairs(Character.Humanoid:GetPlayingAnimationTracks()) do
- v:Stop()
- v:Remove()
- end
- wait()
- Character.Humanoid:ClearAllChildren()
- if Character:FindFirstChild("Animate") then
- Character.Animate:Destroy()
- end
- Character.Humanoid.WalkSpeed = 10
- print("The One 2 v-beta..")
- print("The script isn't really finished yet, but there's some things you should know.")
- print("If you don't have your gun out, you can do a tackle hug with C.")
- print("If you've caught someone, you can press the same key to go crazy.")
- print("If you want to stop (crazy or not) then you can press the V key.")
- print("You can press T to take out a gun. Click to shoot, as usual.")
- print("You can use an alternative, explosive shot by pressing Z. It has a cooldown.")
- print("If you have your gun out, you can hold shift to run.")
- print("Headshots count!")
- print("You can stop and start the music included in this script by pressing M.")
- print("Finally, you can put your gun back by pressing the same key.")
- enabled = true
- end
- end)
- while wait() do
- if Character ~= nil then
- break
- end
- end
- function FallingAnimation()
- lerpintensity = 0.2
- action = true
- while true do
- if freefall == false then
- action = false
- wait()
- if GunEquipped == true then
- if running == true then
- spawn(GunRunAnimation)
- elseif walking == true and running == false then
- spawn(GunWalkAnimation)
- elseif walking == false then
- spawn(GunIdleAnimation)
- end
- elseif GunEquipped == false then
- if walking == true then
- spawn(WalkAnimation)
- elseif walking == false then
- spawn(IdleAnimation)
- end
- break
- end
- end
- if freefall == false then
- action = false
- return
- end
- wait()
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.5, 0.500000119, 0, 0.362036288, 0.0565351993, 0.930447936, -0.859061539, 0.407714725, 0.309486657, -0.361860543, -0.911357462, 0.196174711), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.500001907, 0.500000238, 0, 0.331345797, -0.110222727, -0.937049031, 0.601457059, 0.789876997, 0.119767353, 0.726952195, -0.603279114, 0.328016579), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.600000024, 0.800000012, 0, 0, 1, -0.342020363, 0.939692557, 0, -0.939692557, -0.342020363, 0), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1, 0, 0, 0, -1, 0.258818835, 0.965925932, 0, 0.965925932, -0.258818835, 0), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, -0.258819103, 0.965925872, 0, 0.965925872, 0.258819103), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0.173647806, 0.984807849, 0, 0.984807849, -0.173647806), lerpintensity)
- end
- end
- function IdleAnimation()
- lerpintensity = 0.2
- Character.Humanoid.WalkSpeed = 10
- while true do
- if walking == true or action == true or GunEquipped == true or running == true then
- break
- end
- for i = 1, 15 do
- wait()
- if walking == true or action == true or GunEquipped == true or running == true then
- return
- end
- if i < 7 then
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.415476322, 0.681261539, 0, 0, 0.42261827, 0.906307817, 0, 0.906307817, -0.42261827, -1, 0, 0), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.41547823, 0.681262493, 0, 0, -0.42261827, -0.906307817, 0, 0.906307817, -0.42261827, 1, 0, 0), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.257117271, 0.646629333, 0, 0, 1, 0.422618151, 0.906307101, 0, -0.906307101, 0.422618151, 0), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 0.25711441, 0.646625519, 0, 0, -1, -0.422617823, 0.906306565, 0, 0.906306565, 0.422617823, 0), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.499999166, 1.90734863e-06, -1, 0, 0, 0, -0.0871553198, 0.996194422, 0, 0.996194422, 0.0871553198), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0.599619389, 0.0087146759, -1, 0, 0, 0, -0.0871555209, 0.996194661, 0, 0.996194661, 0.0871555209), lerpintensity)
- else
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.5, 0.500000119, 0, 0, 0.087155737, 0.99619472, 0, 0.99619472, -0.087155737, -1, 0, 0), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.500001907, 0.500000238, 0, 0, -0.087155737, -0.99619472, 0, 0.99619472, -0.087155737, 1, 0, 0), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0871559083, 0.99619472, 0, 0.99619472, -0.0871559083), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), lerpintensity)
- end
- end
- end
- end
- function GunIdleAnimation()
- lerpintensity = 0.1
- while true do
- if walking == true or action == true or GunEquipped == false or running == true then
- break
- end
- for i = 1, 30 do
- wait()
- if walking == true or action == true or GunEquipped == false or running == true then
- return
- end
- if i < 15 then
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.199999988, 0.500000119, -0.800000012, 0, 0.087155737, 0.99619472, -8.74227766e-08, -0.99619472, 0.087155737, 1, -8.70901076e-08, 7.61939667e-09), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.100001812, 0.691286087, 0.900381088, 0, 1, 2.98023224e-08, 0.0871555507, -2.96889162e-08, 0.99619472, 0.99619472, 2.59743782e-09, -0.0871555507), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 1.71363354e-07, 1.00000012, 0, 1.00000012, -1.71363354e-07), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), lerpintensity)
- else
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.182569504, 0.300760746, -0.799999237, -7.61939578e-09, -7.4505806e-09, 1.00000012, -0.0871556401, -0.996194839, -8.08630141e-09, 0.99619472, -0.0871556476, 6.9410433e-09), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.100001812, 0.691286087, 0.900381088, -0.00759610627, 0.99619472, -0.086824052, 0.086823903, 0.0871557072, 0.992403924, 0.99619472, 2.59743782e-09, -0.0871555507), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.899999976, 0.100000001, 0, 0, 1, 0.087155737, 0.99619472, 0, -0.99619472, 0.087155737, 0), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 0.899999976, 0.100000001, 0, 0, -1, -0.0871555507, 0.99619472, 0, 0.99619472, 0.0871555507, 0), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, -0.0871553868, 0.99619478, 0, 0.99619478, 0.0871553868), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0.100000001, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), lerpintensity)
- end
- end
- end
- end
- function WalkAnimation()
- lerpintensity = 0.3
- Character.Humanoid.WalkSpeed = 10
- while true do
- if walking == false or action == true or GunEquipped == true then
- break
- end
- for i = 1, 40 do
- wait()
- if walking == false or action == true or GunEquipped == true then
- return
- end
- if i < 10 then
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.5, 0.500000119, 0, -0.0616284236, -0.061628405, 0.99619472, 0.704416156, 0.704415977, 0.087155737, -0.707106709, 0.707106888, 0), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.500001907, 0.500000238, 0, -0.30839169, 0.00395292044, -0.951251209, 0.791240096, -0.554032326, -0.258819044, -0.528047025, -0.832485735, 0.167731255), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1, 0, 0.258819044, 0, 0.965925813, 0.482962906, 0.866025388, -0.129409522, -0.836516261, 0.5, 0.224143863), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1, 0, -0.258819044, 0, -0.965925813, 0.330366075, 0.939692616, -0.0885213241, 0.907673359, -0.342020124, -0.243210346), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 3.50177288e-07, 1, 0, 1, -3.50177288e-07), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -0.965925872, 0.258818835, 0, 0, 0, 1, 0.258818835, 0.965925872, 0), lerpintensity)
- if i == 1 then
- walksound:Play()
- end
- elseif i < 20 and i >= 10 then
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.5, 0.500000119, 0, 0, 0.087155737, 0.99619472, -0.342020363, 0.936116755, -0.0818995982, -0.939692557, -0.340718865, 0.0298090372), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.500001907, 0.500000238, 0, 0, -0.087155737, -0.99619472, 0.342020333, 0.936116815, -0.0818995982, 0.939692557, -0.340718865, 0.0298090354), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.200000033, 0.400000006, 0, 0, 1, 0.422618628, 0.906307638, 0, -0.906307638, 0.422618628, 0), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 0.200000033, 0.400000006, 0, 0, -1, -0.422618449, 0.906307757, 0, 0.906307757, 0.422618449, 0), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, -0.0871553719, 0.99619478, 0, 0.99619478, 0.0871553719), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0.8, 0, -1, 0, 0, 0, -0.0871555507, 0.99619472, 0, 0.99619472, 0.0871555507), lerpintensity)
- elseif i > 20 and i <= 30 then
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.499996185, 0.5, 3.81469727e-06, -0.340922296, -0.0478352159, 0.938873351, -0.761456788, -0.571644545, -0.305624068, 0.551321626, -0.819105804, 0.158462048), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.600001931, 0.700000226, 0, -0.35627985, 0.0741284862, -0.931434155, -0.533899546, 0.801937878, 0.268042684, 0.76682198, 0.592790484, -0.246137157), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.936495781, 0.0307388306, -0.258819014, 1.71735223e-07, 0.965925455, -0.330366135, 0.939692497, -0.0885215253, -0.90767324, -0.342020124, -0.243210346), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.487262726, 1.04538441, -0.17134285, 0.20372057, -0.0667651445, -0.976749659, -0.476055801, 0.865028381, -0.1584194, 0.855493069, 0.49726063, 0.144440174), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 3.50177288e-07, 1, 0, 1, -3.50177288e-07), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -0.965925753, -0.258819252, 0, 0, 0, 1, -0.258819252, 0.965925753, 0), lerpintensity)
- if i == 21 then
- walksound:Play()
- end
- else
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.5, 0.500000119, 0, 0, 0.087155737, 0.99619472, -0.342020363, 0.936116755, -0.0818995982, -0.939692557, -0.340718865, 0.0298090372), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.500001907, 0.500000238, 0, 0, -0.087155737, -0.99619472, 0.342020333, 0.936116815, -0.0818995982, 0.939692557, -0.340718865, 0.0298090354), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.200000033, 0.400000006, 0, 0, 1, 0.422618628, 0.906307638, 0, -0.906307638, 0.422618628, 0), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 0.200000033, 0.400000006, 0, 0, -1, -0.422618449, 0.906307757, 0, 0.906307757, 0.422618449, 0), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, -0.0871553719, 0.99619478, 0, 0.99619478, 0.0871553719), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0.8, 0, -1, 0, 0, 0, -0.0871555507, 0.99619472, 0, 0.99619472, 0.0871555507), lerpintensity)
- end
- end
- end
- end
- function Tackle()
- local timeout = 1
- local clocktime = 0
- grabbed = false
- local grabbedtorso = nil
- if action == true or freefall == true then
- return
- else
- action = true
- lerpintensity = 0.3
- end
- Character.Humanoid.JumpPower = 0
- Character.Humanoid.WalkSpeed = 35
- local connection
- local function onTouched(part)
- if part.Parent:FindFirstChildOfClass("Humanoid") then
- grabbed = true
- if part.Parent:FindFirstChild("Torso") then
- grabbedtorso = part.Parent.Torso
- else
- grabbedtorso = part.Parent.UpperTorso
- end
- connection:Disconnect()
- end
- end
- connection = Character.Torso.Touched:Connect(onTouched)
- local connection2
- local function onTouched(part)
- if part.Parent:FindFirstChildOfClass("Humanoid") then
- grabbed = true
- if part.Parent:FindFirstChild("Torso") then
- grabbedtorso = part.Parent.Torso
- else
- grabbedtorso = part.Parent.UpperTorso
- end
- connection2:Disconnect()
- end
- end
- connection2 = Character.Torso.Touched:Connect(onTouched)
- coroutine.resume(coroutine.create(function()
- repeat
- wait(0.1)
- clocktime = clocktime + 0.1
- until clocktime >= timeout or grabbed == true
- if clocktime >= timeout then
- action = false
- Character.Humanoid.WalkSpeed = 10
- Character.Humanoid.JumpPower = jumppower
- connection:Disconnect()
- connection2:Disconnect()
- if GunEquipped == true then
- if running == true then
- spawn(GunRunAnimation)
- elseif walking == true and running == false then
- spawn(GunWalkAnimation)
- elseif walking == false then
- spawn(GunIdleAnimation)
- end
- elseif GunEquipped == false then
- if walking == true then
- spawn(WalkAnimation)
- elseif walking == false then
- spawn(IdleAnimation)
- end
- end
- end
- end))
- Ring:Clone().Parent = Character.Torso
- Character.Torso.Ring.CFrame = CFrame.new(Character.Torso.Position.X, Character.Torso.Position.Y, Character.Torso.Position.Z) * CFrame.new(0, -2.3, 0) * CFrame.Angles(math.rad(90), 0, 0)
- local property = {}
- property.Scale = Vector3.new(10, 10, 1)
- local TweenInf = TweenInfo.new(0.6, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
- local Tween = TweenService:Create(Character.Torso.Ring.Mesh, TweenInf, property)
- Tween:Play()
- property.Scale = nil
- property.Transparency = 1
- local TweenL = TweenService:Create(Character.Torso.Ring, TweenInf, property)
- TweenL:Play()
- DashJump:Play()
- TweenL.Completed:Connect(function()
- pcall(function()
- Character.Torso.Ring:Destroy()
- end)
- end)
- repeat
- wait()
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(0, 1.00000012, 0, -0.70710659, 0.707106829, 4.27863256e-08, 0.54167515, 0.541674972, -0.642787635, -0.45451957, -0.454519361, -0.766044259), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(8.34465027e-07, 1.00000191, 6.67572021e-06, -0.707940221, -0.704223514, 0.0537614711, -0.543834805, 0.494970024, -0.677678764, 0.45062694, -0.508993328, -0.733390272), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1, 0, 0, 0, 1, -0.173647985, 0.984807789, 0, -0.984807789, -0.173647985, 0), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1, 0, 0, 0, -1, -0.573576212, 0.819152176, 0, 0.819152176, 0.573576212, 0), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.766044736, 0.642787337, 0, 0.642787337, -0.766044736), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, -0.766044736, 0.642787278, 0, 0.642787278, 0.766044736), lerpintensity)
- until action == false or grabbed == true
- if action == false then
- return
- end
- if grabbed == true then
- Grab:Play()
- local Motor = Instance.new("Motor6D")
- Motor.Name = "Hugging"
- Motor.C1 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor.C0 = CFrame.new(-0.0495090485, 2.10305977, -0.770607471, -1, 0, 0, 0, 0.25881806, 0.965925753, 0, 0.965921581, -0.258819163)
- Motor.Part0 = Character.Torso
- Motor.Part1 = grabbedtorso
- Motor.Parent = Character.Torso
- grabbedtorso.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
- Character.Humanoid.WalkSpeed = 10
- for i = 1, 5 do
- wait()
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(0, 1, 3.81469727e-06, -0.974663973, 0.209261209, -0.0789904445, -0.110879198, -0.75873363, -0.641894579, -0.194256395, -0.616873205, 0.762713253), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0, 1.00000572, 3.81469727e-06, -0.982130229, -0.159923553, 0.0992236137, 0.0376849174, -0.683640063, -0.728845835, 0.184392825, -0.712082028, 0.677450061), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1.00000191, -4.76837158e-07, 0, 0, 1, 0.258819193, 0.965925634, 0, -0.965925634, 0.258819193, 0), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1, 4.76837158e-07, 0, 0, -1, -0.342020035, 0.939692497, -0, 0.939692497, 0.342020035, 0), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 3.81469727e-06, -1, 0, 0, 0, 0.866025209, 0.499999702, 0, 0.499999702, -0.866025209), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, -0.0517673492, -0.193184853, -1, 0, 0, 0, -0.965925753, 0.258819163, 0, 0.258819163, 0.965925753), lerpintensity)
- end
- Motor.C0 = CFrame.new(0.0504875183, 0.0701274872, -0.862149239, -1, 0, 0, 0, 0.996194601, -0.0871558636, 0, -0.0871558636, -0.996194601)
- BodyFall:Play()
- for i = 1, 10 do
- wait()
- if i <= 5 then
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.5, 1.5, 3.81469727e-06, 0.610725999, 0.070555076, 0.788692176, -0.75987345, 0.332373828, 0.558676481, -0.222723216, -0.94050473, 0.256602347), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.599999905, 0.70000577, 3.82214785e-06, 0.294774383, -0.244735256, -0.923695087, 0.937872112, 0.259263366, 0.23060599, 0.183042958, -0.93428421, 0.305954486), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.80000186, 0.199999526, 0.291695803, 0.213656619, 0.932343423, -0.597755134, 0.801671684, 0.00330370665, -0.746727645, -0.558276713, 0.361558706), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.454650879, 0.604892731, 0.094340086, 0.173228294, -0.273797244, -0.946058512, 0.636360347, 0.764258087, -0.104661986, 0.751689196, -0.583903611, 0.306625158), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0.100000001, -0.5, 0.100003816, -0.875065923, -0.257156432, 0.410036445, 0.474807769, -0.620455384, 0.624173164, 0.0938992277, 0.740881205, 0.665039182), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(1, -0.498519897, 0.0815296173, -0.639691174, 0.0149785243, 0.768486202, -0.0754790828, -0.996201873, -0.0434121788, 0.764917135, -0.0857750028, 0.63839215), lerpintensity)
- else
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.5, 1.5, 3.81469727e-06, 0.610725999, 0.070555076, 0.788692176, -0.75987345, 0.332373828, 0.558676481, -0.222723216, -0.94050473, 0.256602347), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.599999905, 0.70000577, 3.82214785e-06, 0.294774383, -0.244735256, -0.923695087, 0.937872112, 0.259263366, 0.23060599, 0.183042958, -0.93428421, 0.305954486), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.900001884, 0.199999526, 0.183465198, 0.349619538, 0.91875273, -0.571812093, 0.798185349, -0.189554393, -0.799606979, -0.490577221, 0.346355975), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.454650879, 0.604892731, 0.094340086, 0.0202065203, -0.474691093, -0.879920244, 0.593890965, 0.713699996, -0.371382505, 0.804291248, -0.515072167, 0.296336442), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0.100000001, -0.5, 0.100003816, -0.875065923, -0.257156432, 0.410036445, 0.483899832, -0.482376635, 0.730173528, 0.0100231878, 0.837366521, 0.546549261), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(1, -0.498519897, -1.61847043, 0.706253648, -0.084143132, 0.702940762, -0.0754790828, -0.996201873, -0.0434121788, 0.703923762, -0.022397304, -0.709922373), lerpintensity)
- end
- end
- Character.Humanoid.WalkSpeed = 0
- lerpintensity = 0.1
- repeat
- local chance = math.random(1, 40)
- if chance < 40 then
- wait()
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-1.30000007, 0.400000036, 3.81469727e-06, 0.917693615, 0.0283914581, 0.396272838, -0.385745138, -0.175017014, 0.905852914, 0.0950730592, -0.984155774, -0.1496602), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(1.39999986, 0.300005764, -0.0999961793, 0.937335551, 0.0720017105, -0.340908438, 0.296476424, 0.349182725, 0.888916969, 0.183042943, -0.934284151, 0.305954456), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.500001907, 0.199999526, 0.0196999311, 0.408983529, 0.912329018, 0.327021897, 0.859677553, -0.392442137, -0.944811285, 0.306082666, -0.116811), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.454650879, 0.604892731, 0.094340086, 0.0202065203, -0.474691093, -0.879920244, -0.234377176, 0.853325725, -0.465726942, 0.971935332, 0.215643987, -0.0940141678), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0.100000001, -0.5, 0.100003816, -0.875065923, -0.257156432, 0.410036445, 0.474807769, -0.620455384, 0.624173164, 0.0938992277, 0.740881205, 0.665039182), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, -0.498519897, -2.41847038, 1, 0, 9.68575478e-08, 8.38190317e-09, -0.996194601, -0.0871558636, 1.04308128e-07, 0.0871558636, -0.996194661), lerpintensity)
- else
- local squishnoise = math.random(1, 2)
- if squishnoise == 1 then
- SmallSquish:Play()
- else
- BigSquish:Play()
- end
- for i = 1, 15 do
- wait()
- if i <= 7 then
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-1.30000007, 0.400000036, 3.81469727e-06, 0.970735729, 0.0583515093, 0.232952893, -0.22052899, -0.167427987, 0.960903049, 0.0950730592, -0.984155774, -0.1496602), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(1.49999988, 0.600005746, -0.0999961793, 0.937335551, 0.072001718, -0.340908438, 0.296476394, 0.349182725, 0.888916969, 0.183042943, -0.934284151, 0.305954456), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.500001907, 0.199999526, 0.0196999311, 0.408983529, 0.912329018, 0.560413837, 0.751164854, -0.348837137, -0.827978253, 0.518153906, -0.214402184), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.454650879, 0.604892731, 0.094340086, 0.0202065203, -0.474691093, -0.879920244, -0.148775578, 0.868873179, -0.472148597, 0.98866415, 0.140451163, -0.0530656464), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0.100000001, -0.5, 0.100003816, -0.609982133, 0.279235959, 0.741585016, 0.474807769, -0.620455384, 0.624173164, 0.634412527, 0.732844889, 0.245883197), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0.482963562, -0.498519897, -2.28906155, 0.965925872, -0.022557579, 0.257834017, 8.38190317e-09, -0.996194601, -0.0871558636, 0.258818924, 0.0841861069, -0.962250173), lerpintensity)
- else
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-1.30000007, 0.400000036, 3.81469727e-06, 0.986262202, 0.0727217793, 0.148318172, -0.135084629, -0.161705196, 0.977549672, 0.0950730592, -0.984155774, -0.1496602), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(1.39999986, 0.400005758, -0.0999961793, 0.959608316, 0.10216102, -0.262136966, 0.213654071, 0.341578633, 0.915246546, 0.183042943, -0.934284151, 0.305954456), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.500001907, 0.199999526, 0.0196999311, 0.408983529, 0.912329018, 0.327021867, 0.859677553, -0.392442137, -0.944811285, 0.306082606, -0.116810992), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.454650879, 0.604892731, 0.094340086, 0.0202065203, -0.474691093, -0.879920244, -0.688944399, 0.631179631, -0.356324226, 0.724531949, 0.613416135, -0.314282209), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0.100000001, -0.5, 0.100003816, -0.804779053, -0.593144536, 0.022582531, 0.474807739, -0.620455325, 0.624173105, -0.356213689, 0.513043761, 0.780958951), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(-0.527271271, -0.498519897, -2.06670284, 0.965925813, 0.0225576181, -0.257834285, 8.38190317e-09, -0.996194601, -0.0871558636, -0.258819163, 0.084186092, -0.962250113), lerpintensity)
- end
- end
- end
- until on == "more" or on == "false"
- local first = false
- repeat
- if on == "false" then
- break
- end
- local chance = math.random(1, 40)
- local squishnoise = math.random(1, 2)
- if squishnoise == 1 then
- SmallSquish:Play()
- else
- BigSquish:Play()
- end
- if first == false then
- first = true
- coroutine.resume(coroutine.create(function()
- Talk("i can't hold back my feelings anymore, ".. grabbedtorso.Parent.Name.. "!")
- end))
- else
- coroutine.resume(coroutine.create(function()
- Talk(possiblefannoise[math.random(1, #possiblefannoise)])
- end))
- end
- for i = 1, 15 do
- wait()
- if i <= 7 then
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-1.30000007, 0.400000036, 3.81469727e-06, 0.970735729, 0.0583515093, 0.232952893, -0.22052899, -0.167427987, 0.960903049, 0.0950730592, -0.984155774, -0.1496602), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(1.49999988, 0.600005746, -0.0999961793, 0.937335551, 0.072001718, -0.340908438, 0.296476394, 0.349182725, 0.888916969, 0.183042943, -0.934284151, 0.305954456), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.500001907, 0.199999526, 0.0196999311, 0.408983529, 0.912329018, 0.560413837, 0.751164854, -0.348837137, -0.827978253, 0.518153906, -0.214402184), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.454650879, 0.604892731, 0.094340086, 0.0202065203, -0.474691093, -0.879920244, -0.148775578, 0.868873179, -0.472148597, 0.98866415, 0.140451163, -0.0530656464), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0.100000001, -0.5, 0.100003816, -0.609982133, 0.279235959, 0.741585016, 0.474807769, -0.620455384, 0.624173164, 0.634412527, 0.732844889, 0.245883197), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0.482963562, -0.498519897, -2.28906155, 0.965925872, -0.022557579, 0.257834017, 8.38190317e-09, -0.996194601, -0.0871558636, 0.258818924, 0.0841861069, -0.962250173), lerpintensity)
- else
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-1.30000007, 0.400000036, 3.81469727e-06, 0.986262202, 0.0727217793, 0.148318172, -0.135084629, -0.161705196, 0.977549672, 0.0950730592, -0.984155774, -0.1496602), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(1.39999986, 0.400005758, -0.0999961793, 0.959608316, 0.10216102, -0.262136966, 0.213654071, 0.341578633, 0.915246546, 0.183042943, -0.934284151, 0.305954456), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.500001907, 0.199999526, 0.0196999311, 0.408983529, 0.912329018, 0.327021867, 0.859677553, -0.392442137, -0.944811285, 0.306082606, -0.116810992), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.454650879, 0.604892731, 0.094340086, 0.0202065203, -0.474691093, -0.879920244, -0.688944399, 0.631179631, -0.356324226, 0.724531949, 0.613416135, -0.314282209), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0.100000001, -0.5, 0.100003816, -0.804779053, -0.593144536, 0.022582531, 0.474807739, -0.620455325, 0.624173105, -0.356213689, 0.513043761, 0.780958951), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(-0.527271271, -0.498519897, -2.06670284, 0.965925813, 0.0225576181, -0.257834285, 8.38190317e-09, -0.996194601, -0.0871558636, -0.258819163, 0.084186092, -0.962250113), lerpintensity)
- end
- end
- until on == "false"
- coroutine.resume(coroutine.create(function()
- Talk("Bye Bye!")
- end))
- for i = 1, 10 do
- wait()
- if i > 5 then
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.5, 1.5, 3.81469727e-06, 0.610725999, 0.070555076, 0.788692176, -0.75987345, 0.332373828, 0.558676481, -0.222723216, -0.94050473, 0.256602347), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.599999905, 0.70000577, 3.82214785e-06, 0.294774383, -0.244735256, -0.923695087, 0.937872112, 0.259263366, 0.23060599, 0.183042958, -0.93428421, 0.305954486), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.80000186, 0.199999526, 0.291695803, 0.213656619, 0.932343423, -0.597755134, 0.801671684, 0.00330370665, -0.746727645, -0.558276713, 0.361558706), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.454650879, 0.604892731, 0.094340086, 0.173228294, -0.273797244, -0.946058512, 0.636360347, 0.764258087, -0.104661986, 0.751689196, -0.583903611, 0.306625158), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0.100000001, -0.5, 0.100003816, -0.875065923, -0.257156432, 0.410036445, 0.474807769, -0.620455384, 0.624173164, 0.0938992277, 0.740881205, 0.665039182), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(1, -0.498519897, 0.0815296173, -0.639691174, 0.0149785243, 0.768486202, -0.0754790828, -0.996201873, -0.0434121788, 0.764917135, -0.0857750028, 0.63839215), lerpintensity)
- else
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.5, 1.5, 3.81469727e-06, 0.610725999, 0.070555076, 0.788692176, -0.75987345, 0.332373828, 0.558676481, -0.222723216, -0.94050473, 0.256602347), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.599999905, 0.70000577, 3.82214785e-06, 0.294774383, -0.244735256, -0.923695087, 0.937872112, 0.259263366, 0.23060599, 0.183042958, -0.93428421, 0.305954486), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 0.900001884, 0.199999526, 0.183465198, 0.349619538, 0.91875273, -0.571812093, 0.798185349, -0.189554393, -0.799606979, -0.490577221, 0.346355975), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.454650879, 0.604892731, 0.094340086, 0.0202065203, -0.474691093, -0.879920244, 0.593890965, 0.713699996, -0.371382505, 0.804291248, -0.515072167, 0.296336442), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0.100000001, -0.5, 0.100003816, -0.875065923, -0.257156432, 0.410036445, 0.483899832, -0.482376635, 0.730173528, 0.0100231878, 0.837366521, 0.546549261), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(1, -0.498519897, -1.61847043, 0.706253648, -0.084143132, 0.702940762, -0.0754790828, -0.996201873, -0.0434121788, 0.703923762, -0.022397304, -0.709922373), lerpintensity)
- end
- end
- grabbedtorso.Anchored = true
- coroutine.resume(coroutine.create(function()
- wait(0.2)
- grabbedtorso.Anchored = false
- end))
- on = true
- action = false
- pcall(function()
- for i, v in pairs(Character.Torso:GetChildren()) do
- if v.Name == "Hugging" and v.ClassName == "Motor6D" then
- v:Destroy()
- end
- end
- end)
- grabbedtorso.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
- if walking == true then
- spawn(WalkAnimation)
- elseif walking == false then
- spawn(IdleAnimation)
- end
- Character.Humanoid.WalkSpeed = 10
- Character.Humanoid.JumpPower = jumppower
- end
- end
- function GunWalkAnimation()
- lerpintensity = 0.15
- while true do
- if walking == false or action == true or GunEquipped == false or running == true then
- break
- end
- for i = 1, 20 do
- wait()
- if walking == false or action == true or GunEquipped == false or running == true then
- break
- end
- if i < 5 then
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.199999988, 0.500000119, -0.800000012, 0, 0.087155737, 0.99619472, -8.74227766e-08, -0.99619472, 0.087155737, 1, -8.70901076e-08, 7.61939667e-09), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.100001812, 0.691286087, 0.900381088, 0, 1, 2.98023224e-08, 0.0871555507, -2.96889162e-08, 0.99619472, 0.99619472, 2.59743782e-09, -0.0871555507), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1.10000229, -0.173206329, -0.173648134, 0, 0.984807551, 0.492403775, 0.866025448, 0.0868240669, -0.852868378, 0.5, -0.150383696), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1.05000019, 0.0866088867, 0.173648134, 0, -0.984807551, 0.492404044, 0.866025329, 0.0868241116, 0.852868319, -0.500000179, 0.150383681), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 1.71363354e-07, 1.00000012, 0, 1.00000012, -1.71363354e-07), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -0.98480773, -0.173648179, 0, 0, 0, 1, -0.173648179, 0.98480773, 0), lerpintensity)
- if i == 1 then
- walksound:Play()
- end
- elseif i >= 5 and i < 10 then
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.199999988, 0.500000119, -0.800000012, 0, 0.087155737, 0.99619472, -8.74227766e-08, -0.99619472, 0.087155737, 1, -8.70901076e-08, 7.61939667e-09), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.100001812, 0.691286087, 0.900381088, 0, 1, 2.98023224e-08, 0.0871555507, -2.96889162e-08, 0.99619472, 0.99619472, 2.59743782e-09, -0.0871555507), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1.10000229, -0.173206329, -0.173648134, 0, 0.984807551, 0.492403775, 0.866025448, 0.0868240669, -0.852868378, 0.5, -0.150383696), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1.05000019, 0.0866088867, 0.173648134, 0, -0.984807551, 0.492404044, 0.866025329, 0.0868241116, 0.852868319, -0.500000179, 0.150383681), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 1.71363354e-07, 1.00000012, 0, 1.00000012, -1.71363354e-07), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0.0999999046, 0, -0.98480773, -0.173648179, 0, 0, 0, 1, -0.173648179, 0.98480773, 0), lerpintensity)
- elseif i >= 10 and i < 15 then
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.199999988, 0.500000119, -0.800000012, 0, 0.087155737, 0.99619472, -8.74227766e-08, -0.99619472, 0.087155737, 1, -8.70901076e-08, 7.61939667e-09), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.100001812, 0.691286087, 0.900381088, 0, 1, 2.98023224e-08, 0.0871555507, -2.96889162e-08, 0.99619472, 0.99619472, 2.59743782e-09, -0.0871555507), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.499996185, 1.19015789, 0.129904747, 0.173648402, -1.62060473e-07, 0.984807253, -0.564862609, 0.819151878, 0.0996008292, -0.806706905, -0.573576272, 0.142244384), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1.15000057, -0.0866012573, -0.173648402, 1.54857418e-07, -0.984807372, -0.492403805, 0.866025448, 0.0868243426, 0.852868497, 0.499999762, -0.150383979), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 1.71363354e-07, 1.00000012, 0, 1.00000012, -1.71363354e-07), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -0.98480767, 0.173648551, 0, 0, 0, 1, 0.173648551, 0.98480767, 0), lerpintensity)
- if i == 10 then
- walksound:Play()
- end
- elseif i >= 15 then
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.199999988, 0.500000119, -0.800000012, 0, 0.087155737, 0.99619472, -8.74227766e-08, -0.99619472, 0.087155737, 1, -8.70901076e-08, 7.61939667e-09), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.100001812, 0.691286087, 0.900381088, 0, 1, 2.98023224e-08, 0.0871555507, -2.96889162e-08, 0.99619472, 0.99619472, 2.59743782e-09, -0.0871555507), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.499996185, 1.19015789, 0.129904747, 0.173648402, -1.62060473e-07, 0.984807253, -0.564862609, 0.819151878, 0.0996008292, -0.806706905, -0.573576272, 0.142244384), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1.15000057, -0.0866012573, -0.173648402, 1.54857418e-07, -0.984807372, -0.492403805, 0.866025448, 0.0868243426, 0.852868497, 0.499999762, -0.150383979), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 1.71363354e-07, 1.00000012, 0, 1.00000012, -1.71363354e-07), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0.0999999046, 0, -0.98480767, 0.173648551, 0, 0, 0, 1, 0.173648551, 0.98480767, 0), lerpintensity)
- end
- end
- end
- end
- function GunRunAnimation()
- lerpintensity = 0.3
- if running == true then
- return
- end
- running = true
- while true do
- if action == true and shooting == false or GunEquipped == false or running == false then
- stoprunning()
- break
- elseif walking == false then
- stoprunning()
- return
- end
- for i = 1, 15 do
- wait()
- if action == true and shooting == false or GunEquipped == false or running == false then
- stoprunning()
- return
- elseif walking == false then
- stoprunning()
- return
- end
- if i < 7 then
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.199999988, 0.500000119, -0.800000012, 0, 0.087155737, 0.99619472, -8.74227766e-08, -0.99619472, 0.087155737, 1, -8.70901076e-08, 7.61939667e-09), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.100001812, 0.691286087, 0.900381088, 0, 1, 2.98023224e-08, 0.0871555507, -2.96889162e-08, 0.99619472, 0.99619472, 2.59743782e-09, -0.0871555507), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1.10000229, -0.173206329, -0.173648134, 0, 0.984807551, 0.95125103, 0.258818895, 0.167731225, -0.254886776, 0.965925932, -0.0449434109), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1.05000019, 0.0866088867, 0.173648134, 0, -0.984807551, 0.92541647, 0.342020363, 0.163175881, 0.336824238, -0.939692557, 0.0593911819), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -0.98480773, 0.157378688, -0.0733869597, 0, 0.422618657, 0.906307757, 0.173648179, 0.892538905, -0.416198134), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -0.98480767, -0.150383741, -0.0868240148, 1.04308164e-07, -0.500000119, 0.866025329, -0.173648134, 0.852868378, 0.492404073), lerpintensity)
- if i == 1 then
- walksound:Play()
- end
- else
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.199999988, 0.500000119, -0.800000012, 0, 0.087155737, 0.99619472, -8.74227766e-08, -0.99619472, 0.087155737, 1, -8.70901076e-08, 7.61939667e-09), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.100001812, 0.691286087, 0.900381088, 0, 1, 2.98023224e-08, 0.0871555507, -2.96889162e-08, 0.99619472, 0.99619472, 2.59743782e-09, -0.0871555507), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1.10000229, -0.173204422, 0.128024429, 0.000197760761, 0.991770387, -0.960408211, 0.249515295, 0.12392614, -0.247437179, -0.968370795, 0.0321339779), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.49105835, 0.978897095, -0.000112436712, -0.0653868467, -0.0641448647, -0.995795369, -0.98073405, 0.188220412, 0.0522734299, 0.184076607, 0.980029821, -0.0752162114), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -0.98480773, -0.157378688, 0.0733869597, 0, 0.422618657, 0.906307757, -0.173648179, 0.892538905, -0.416198134), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -0.996194601, 0.0754786804, 0.0435777977, 1.04308164e-07, -0.500000119, 0.866025329, 0.0871553645, 0.862729728, 0.498097539), lerpintensity)
- if i == 7 then
- walksound:Play()
- end
- end
- end
- end
- end
- function GunTakeOut()
- if action == true then
- return
- else
- action = true
- end
- lerpintensity = 0.3
- Character.Humanoid.WalkSpeed = 0
- Character.Humanoid.JumpPower = 0
- if GunEquipped == false then
- for i = 1, 45 do
- wait()
- if i >= 1 and i < 15 then
- if i == 1 then
- masksound:Play()
- end
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.5, 0.500000119, 0, -0.0885213241, -0.411008537, 0.907323539, 0.243210346, 0.874410391, 0.41982758, -0.965925813, 0.257834166, 0.0225575641), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.500001907, 0.500000238, 0, -0.00644042995, 0.0771135688, -0.997001529, 0.036346633, 0.996381342, 0.0768309459, 0.999318421, -0.035742797, -0.00922000408), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -0.817427635, 0.574380577, 0.0435779542, -0.306258202, -0.49742949, 0.811646461, 0.487870991, 0.650116205, 0.582521319), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), lerpintensity)
- elseif i >= 15 and i < 30 then
- if i == 15 then
- Gun.Parent = Character["Right Arm"]
- cocksound.Parent = Gun
- cocksound:Play()
- end
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.499996185, 0.500000954, -0.299999237, 0.573117733, 0.450334728, 0.684641957, -0.810699165, 0.189650699, 0.553894997, 0.119595334, -0.872485697, 0.473778099), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.500001907, 0.500000238, 0, 0, 0.0871557593, -0.99619472, 0, 0.99619472, 0.0871557593, 1, 0, 0), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -0.836516201, 0.247167766, 0.489028335, 0.224143848, -0.660038292, 0.717013896, 0.500000179, 0.709406495, 0.496731579), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), lerpintensity)
- elseif i >= 30 then
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.399996191, 0.500000954, -0.0999992415, 0.390131444, -0.530427456, 0.752624869, -0.810699165, 0.189650699, 0.553894997, -0.436536878, -0.826244116, -0.356028348), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.500001907, 0.500000238, 0, 0, 0.0871557593, -0.99619472, 0, 0.99619472, 0.0871557593, 1, 0, 0), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -0.859785378, 0.00365444645, 0.51064235, 0.365998089, -0.692931056, 0.621201932, 0.356110126, 0.720994592, 0.59443444), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), lerpintensity)
- end
- end
- FlashlightClick.PlaybackSpeed = 1.1
- FlashlightClick:Play()
- GunLaser1.Transparency = 0.6
- GunLaser2.Transparency = 0.8
- GunLaser3.Transparency = 0.95
- action = false
- walking = false
- running = false
- GunEquipped = true
- Character.Humanoid.WalkSpeed = 10
- GunIdleAnimation()
- Character.Humanoid.JumpPower = jumppower
- else
- action = true
- GunEquipped = false
- running = false
- shiftdown = false
- FlashlightClick.PlaybackSpeed = 0.9
- FlashlightClick:Play()
- GunLaser1.Transparency = 1
- GunLaser2.Transparency = 1
- GunLaser3.Transparency = 1
- Character.Humanoid.JumpPower = 0
- for i = 1, 15 do
- wait()
- if i == 1 then
- masksound:Play()
- elseif i == 14 then
- equipsound:Play()
- end
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(-0.5, 0.500000119, 0, -0.0885213241, -0.411008537, 0.907323539, 0.243210346, 0.874410391, 0.41982758, -0.965925813, 0.257834166, 0.0225575641), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.500001907, 0.500000238, 0, -0.00644042995, 0.0771135688, -0.997001529, 0.036346633, 0.996381342, 0.0768309459, 0.999318421, -0.035742797, -0.00922000408), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -0.817427635, 0.574380577, 0.0435779542, -0.306258202, -0.49742949, 0.811646461, 0.487870991, 0.650116205, 0.582521319), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), lerpintensity)
- end
- Gun.Parent = nil
- action = false
- walking = false
- running = false
- shiftdown = false
- wait()
- Character.Humanoid.WalkSpeed = 10
- Character.Humanoid.JumpPower = jumppower
- IdleAnimation()
- end
- end
- function GunFire(hitP)
- if action == true then
- return
- else
- action = true
- shooting = true
- lerpintensity = 0.7
- end
- Character.Humanoid.JumpPower = 0
- for i = 1, 5 do
- wait()
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(0.200000018, 1.10000014, 0, -1.94808241e-08, -1.49011603e-08, 0.99999994, -1, 1.87256603e-07, -2.00234354e-08, -1.78955474e-07, -1.00000012, 8.75252168e-16), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.500001907, 1.10000026, 0, 0.819151998, -3.58062735e-08, -0.573576331, 0.573576391, -2.50718202e-08, 0.819151938, -4.37113883e-08, -1, 0), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0871559083, 0.99619472, 0, 0.99619472, -0.0871559083), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), lerpintensity)
- end
- local Rya = Ray.new(Gun.CFrame.p, (hitP - Gun.CFrame.p).unit * 500)
- if not game.Workspace:FindFirstChild("ShotFolder") then
- local Folder = Instance.new("Folder")
- Folder.Name = "ShotFolder"
- Folder.Parent = game.Workspace
- RemoteEvent:FireClient(Playerr, "folderexists")
- end
- for i, v in pairs(game.Workspace.ShotFolder:GetChildren()) do
- table.insert(gunraycastignorelist, 1, v)
- end
- for i, v in pairs(game.Workspace:GetDescendants()) do
- if v.ClassName == "Accessory" then
- table.insert(gunraycastignorelist, 1, v)
- end
- end
- local part, hitposition = workspace:FindPartOnRayWithIgnoreList(Rya, gunraycastignorelist)
- local FireBeam = Instance.new("Part")
- local Magn = (Gun.Position - hitposition).magnitude
- if part then
- if part.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
- if part.Name == "Head" then
- if part.Parent:FindFirstChildOfClass("Humanoid").Health - headshotdamage <= 0 and part.Parent:FindFirstChildOfClass("Humanoid"):GetState() ~= Enum.HumanoidStateType.Dead then
- if shoutplaying == true then
- return
- else
- local chance = math.random(1, 3)
- if chance == 1 then
- Character.Head.Kill1:Play()
- Character.Head.Kill1.Ended:Connect(function()
- shoutplaying = false
- end)
- elseif chance == 2 then
- Character.Head.Kill2:Play()
- Character.Head.Kill2.Ended:Connect(function()
- shoutplaying = false
- end)
- elseif chance == 3 then
- Character.Head.Kill3:Play()
- Character.Head.Kill3.Ended:Connect(function()
- shoutplaying = false
- end)
- end
- end
- end
- if headshotdamage <= part.Parent:FindFirstChildOfClass("Humanoid").Health / 40 then
- Useless:Clone().Parent = part
- part.Useless.PlaybackSpeed = (math.random(9, 12)) / 10
- part.Useless:Remove()
- else
- ShotMarker:Clone().Parent = part
- part.ShotMarker.PlaybackSpeed = 1.4
- part.ShotMarker:Remove()
- end
- part.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(headshotdamage)
- else
- if part.Parent:FindFirstChildOfClass("Humanoid").Health - gunshotdamage <= 0 and part.Parent:FindFirstChildOfClass("Humanoid"):GetState() ~= Enum.HumanoidStateType.Dead then
- if shoutplaying == true then
- return
- else
- local chance = math.random(1, 3)
- if chance == 1 then
- Character.Head.Kill1:Play()
- Character.Head.Kill1.Ended:Connect(function()
- shoutplaying = false
- end)
- elseif chance == 2 then
- Character.Head.Kill2:Play()
- Character.Head.Kill2.Ended:Connect(function()
- shoutplaying = false
- end)
- elseif chance == 3 then
- Character.Head.Kill3:Play()
- Character.Head.Kill3.Ended:Connect(function()
- shoutplaying = false
- end)
- end
- end
- end
- if gunshotdamage <= part.Parent:FindFirstChildOfClass("Humanoid").Health / 60 then
- Useless:Clone().Parent = part
- part.Useless.PlaybackSpeed = (math.random(9, 12)) / 10
- part.Useless:Remove()
- else
- ShotMarker:Clone().Parent = part
- part.ShotMarker.PlaybackSpeed = 1
- part.ShotMarker:Remove()
- end
- part.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(gunshotdamage)
- end
- end
- end
- FireBeam.Transparency = 0.4
- FireBeam.CanCollide = false
- if part then
- FireBeam.Size = Vector3.new(0.3, 0.3, Magn)
- else
- FireBeam.Size = Vector3.new(0.3, 0.3, 500)
- end
- FireBeam.Material = "Neon"
- FireBeam.CFrame = Gun.CFrame:Lerp(CFrame.new(hitposition), 0.5)
- FireBeam.CFrame = CFrame.new(FireBeam.Position, hitposition)
- FireBeam.Anchored = true
- FireBeam.Name = "PlayerGunFire"
- FireBeam.Parent = game.Workspace.ShotFolder
- local properties = {}
- properties.Transparency = 1
- properties.Size = FireBeam.Size + Vector3.new(1, 1, 0)
- local TweenEnfo = TweenInfo.new(0.3, Enum.EasingStyle.Linear)
- local TTween = TweenService:Create(FireBeam, TweenEnfo, properties)
- TTween:Play()
- TTween.Completed:Connect(function()
- FireBeam:Destroy()
- end)
- local chance = possibleshotnoise[math.random(1, #possibleshotnoise)]
- if chance == possibleshotnoise[1] then
- if not Gun:FindFirstChild("first") then
- local FireSound = Instance.new("Sound")
- FireSound.Name = "first"
- FireSound.Volume = 4
- FireSound.SoundId = possibleshotnoise[1]
- FireSound.Parent = Gun
- end
- Gun.first.Pitch = (math.random(8,12)) / 10
- Gun.first:Play()
- elseif chance == possibleshotnoise[2] then
- if not Gun:FindFirstChild("second") then
- local FireSound = Instance.new("Sound")
- FireSound.Name = "second"
- FireSound.Volume = 4
- FireSound.SoundId = possibleshotnoise[2]
- FireSound.Parent = Gun
- end
- Gun.second.Pitch = (math.random(8,12)) / 10
- Gun.second:Play()
- elseif chance == possibleshotnoise[3] then
- if not Gun:FindFirstChild("third") then
- local FireSound = Instance.new("Sound")
- FireSound.Name = "third"
- FireSound.Volume = 4
- FireSound.SoundId = possibleshotnoise[3]
- FireSound.Parent = Gun
- end
- Gun.third.Pitch = (math.random(8,12)) / 10
- Gun.third:Play()
- elseif chance == possibleshotnoise[4] then
- if not Gun:FindFirstChild("fourth") then
- local FireSound = Instance.new("Sound")
- FireSound.Name = "fourth"
- FireSound.Volume = 4
- FireSound.SoundId = possibleshotnoise[4]
- FireSound.Parent = Gun
- end
- Gun.fourth.Pitch = (math.random(8,12)) / 10
- Gun.fourth:Play()
- elseif chance == possibleshotnoise[5] then
- if not Gun:FindFirstChild("fifth") then
- local FireSound = Instance.new("Sound")
- FireSound.Name = "fifth"
- FireSound.Volume = 4
- FireSound.SoundId = possibleshotnoise[5]
- FireSound.Parent = Gun
- end
- Gun.fifth.Pitch = (math.random(8,12)) / 10
- Gun.fifth:Play()
- end
- action = false
- if walking == true then
- if running == true then
- GunRunAnimation()
- else
- GunWalkAnimation()
- end
- else
- GunIdleAnimation()
- end
- shooting = false
- Character.Humanoid.JumpPower = jumppower
- gunraycastignorelist = {Gun, Character}
- end
- function GunExplosionFire(hitP)
- local Cooldown = coroutine.wrap(function(cooldowntime)
- repeat
- wait(0.1)
- cooldowntime = cooldowntime - 0.1
- until cooldowntime <= 0
- shotavailable = true
- end)
- if action == true then
- return
- else
- action = true
- end
- Character.Humanoid.JumpPower = 0
- lerpintensity = 0.7
- shooting = true
- shotavailable = false
- for i = 1, 5 do
- wait()
- RShoulder.C1 = RShoulder.C1:Lerp(CFrame.new(0.200000018, 1.10000014, 0, -1.94808241e-08, -1.49011603e-08, 0.99999994, -1, 1.87256603e-07, -2.00234354e-08, -1.78955474e-07, -1.00000012, 8.75252168e-16), lerpintensity)
- LShoulder.C1 = LShoulder.C1:Lerp(CFrame.new(0.500001907, 1.10000026, 0, 0.819151998, -3.58062735e-08, -0.573576331, 0.573576391, -2.50718202e-08, 0.819151938, -4.37113883e-08, -1, 0), lerpintensity)
- RHip.C1 = RHip.C1:Lerp(CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), lerpintensity)
- LHip.C1 = LHip.C1:Lerp(CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), lerpintensity)
- Neck.C1 = Neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0871559083, 0.99619472, 0, 0.99619472, -0.0871559083), lerpintensity)
- RJoint.C1 = RJoint.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), lerpintensity)
- end
- local Rya = Ray.new(Gun.CFrame.p, (hitP - Gun.CFrame.p).unit * 500)
- if not game.Workspace:FindFirstChild("ShotFolder") then
- local Folder = Instance.new("Folder")
- Folder.Name = "ShotFolder"
- Folder.Parent = game.Workspace
- RemoteEvent:FireClient(Playerr, "folderexists")
- end
- for i, v in pairs(game.Workspace.ShotFolder:GetChildren()) do
- if v.Name == "PlayerGunFire" then
- table.insert(gunraycastignorelist, 1, v)
- end
- end
- local part, hitposition = workspace:FindPartOnRayWithIgnoreList(Rya, gunraycastignorelist)
- local FireBeam = Instance.new("Part")
- FireBeam.Color = Orange
- local Magn = (Gun.Position - hitposition).magnitude
- FireBeam.Transparency = 0.4
- FireBeam.CanCollide = false
- if part then
- FireBeam.Size = Vector3.new(0.3, 0.3, Magn)
- else
- FireBeam.Size = Vector3.new(0.3, 0.3, 500)
- end
- FireBeam.Material = "Neon"
- FireBeam.CFrame = Gun.CFrame:Lerp(CFrame.new(hitposition), 0.5)
- FireBeam.CFrame = CFrame.new(FireBeam.Position, hitposition)
- FireBeam.Anchored = true
- FireBeam.Name = "PlayerGunFire"
- local SecondBeam = FireBeam:Clone()
- SecondBeam.Size = FireBeam.Size + Vector3.new(0.7, 0.7, 0)
- SecondBeam.Name = "PlayerGunFire"
- FireBeam.Parent = game.Workspace.ShotFolder
- SecondBeam.Parent = game.Workspace.ShotFolder
- local properties = {}
- properties.Transparency = 1
- properties.CFrame = FireBeam.CFrame
- properties.Size = FireBeam.Size + Vector3.new(FireBeam.Size.X + 1, FireBeam.Size.Y + 1, 0)
- local TweenEnfo = TweenInfo.new(0.3, Enum.EasingStyle.Linear)
- local TTween = TweenService:Create(FireBeam, TweenEnfo, properties)
- TTween:Play()
- TTween = TweenService:Create(SecondBeam, TweenEnfo, properties)
- TTween:Play()
- TTween.Completed:Connect(function()
- FireBeam:Destroy()
- SecondBeam:Destroy()
- end)
- local Explosioo1 = Explosion1:Clone()
- local Explosioo2 = Explosion2:Clone()
- properties.Size = Vector3.new(Explosioo1.Size.X + 1, Explosioo1.Size.Y + 1, Explosioo1.Size.Z + 1)
- properties.CFrame = CFrame.new(hitposition)
- Explosioo1.CFrame = CFrame.new(hitposition)
- Explosioo1.Parent = game.Workspace
- TTween = TweenService:Create(Explosioo1, TweenEnfo, properties)
- TTween:Play()
- Explosioo2.CFrame = CFrame.new(hitposition)
- Explosioo2.Parent = game.Workspace
- explosionsound:Clone().Parent = Explosioo2
- Explosioo2.Sound:Remove()
- TTween = TweenService:Create(Explosioo2, TweenEnfo, properties)
- TTween:Play()
- TTween.Completed:Connect(function()
- Explosioo1:Destroy()
- Explosioo2:Destroy()
- wait()
- end)
- local Explosion = Instance.new("Explosion")
- Explosion.BlastPressure = 500000
- Explosion.BlastRadius = 18
- Explosion.DestroyJointRadiusPercent = 0
- Explosion.ExplosionType = Enum.ExplosionType.NoCraters
- Explosion.Visible = false
- Explosion.Position = Explosioo1.Position
- Explosion.Parent = game.Workspace
- Explosioo1.Touched:Connect(function(hit)
- if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
- if hit.Parent:FindFirstChildOfClass("Humanoid"):FindFirstChild("Hit") then
- return
- end
- if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
- if hit.Parent:FindFirstChildOfClass("Humanoid").Health - explosionshotdamage <= 0 and hit.Parent:FindFirstChildOfClass("Humanoid"):GetState() ~= Enum.HumanoidStateType.Dead then
- if shoutplaying == true then
- return
- else
- local chance = math.random(1, 3)
- if chance == 1 then
- Character.Head.Kill1:Play()
- Character.Head.Kill1.Ended:Connect(function()
- shoutplaying = false
- end)
- elseif chance == 2 then
- Character.Head.Kill2:Play()
- Character.Head.Kill2.Ended:Connect(function()
- shoutplaying = false
- end)
- elseif chance == 3 then
- Character.Head.Kill3:Play()
- Character.Head.Kill3.Ended:Connect(function()
- shoutplaying = false
- end)
- end
- end
- end
- if explosionshotdamage <= hit.Parent:FindFirstChildOfClass("Humanoid").Health / 20 then
- Useless:Clone().Parent = hit
- hit.Useless.PlaybackSpeed = (math.random(9, 12)) / 10
- hit.Useless:Remove()
- end
- local Haet = Instance.new("NumberValue")
- Haet.Name = "Hit"
- Haet.Parent = hit.Parent:FindFirstChildOfClass("Humanoid")
- hit.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(explosionshotdamage)
- end
- end
- end)
- local chance = possibleshotnoise[math.random(1, #possibleshotnoise)]
- if chance == possibleshotnoise[1] then
- if not Gun:FindFirstChild("first") then
- local FireSound = Instance.new("Sound")
- FireSound.Name = "first"
- FireSound.Volume = 4
- FireSound.Parent = Gun
- end
- Gun.first.Pitch = (math.random(8,12)) / 10
- Gun.first:Play()
- elseif chance == possibleshotnoise[2] then
- if not Gun:FindFirstChild("second") then
- local FireSound = Instance.new("Sound")
- FireSound.Name = "second"
- FireSound.Volume = 4
- FireSound.Parent = Gun
- end
- Gun.second.Pitch = (math.random(8,12)) / 10
- Gun.second:Play()
- elseif chance == possibleshotnoise[3] then
- if not Gun:FindFirstChild("third") then
- local FireSound = Instance.new("Sound")
- FireSound.Name = "third"
- FireSound.Volume = 4
- FireSound.Parent = Gun
- end
- Gun.third.Pitch = (math.random(8,12)) / 10
- Gun.third:Play()
- elseif chance == possibleshotnoise[4] then
- if not Gun:FindFirstChild("fourth") then
- local FireSound = Instance.new("Sound")
- FireSound.Name = "fourth"
- FireSound.Volume = 4
- FireSound.Parent = Gun
- end
- Gun.fourth.Pitch = (math.random(8,12)) / 10
- Gun.fourth:Play()
- elseif chance == possibleshotnoise[5] then
- if not Gun:FindFirstChild("fifth") then
- local FireSound = Instance.new("Sound")
- FireSound.Name = "fifth"
- FireSound.Volume = 4
- FireSound.Parent = Gun
- end
- Gun.fifth.Pitch = (math.random(8,12)) / 10
- Gun.fifth:Play()
- end
- action = false
- Cooldown(2)
- if walking == true then
- if running == true then
- GunRunAnimation()
- else
- GunWalkAnimation()
- end
- else
- GunIdleAnimation()
- end
- lerpintensity = 0.2
- gunraycastignorelist = {Gun, Character}
- shooting = false
- Character.Humanoid.JumpPower = jumppower
- wait()
- for i, v in pairs(game.Workspace:GetDescendants()) do
- if v.ClassName == "NumberValue" and v.Name == "Hit" then
- v:Destroy()
- end
- end
- end
- function Ragdoll()
- Character.Humanoid.AutoRotate = false
- local xrandom = 0
- local yrandom = 0
- local zrandom = 0
- xrandom = math.random(1,2)
- yrandom = math.random(1,2)
- zrandom = math.random(1,2)
- if xrandom == 1 then
- xrandom = -10
- else
- xrandom = 10
- end
- if yrandom == 1 then
- yrandom = -10
- else
- yrandom = 10
- end
- if zrandom == 1 then
- zrandom = -10
- else
- yrandom = 10
- end
- Character.Torso.RotVelocity = Vector3.new(Character.Torso.RotVelocity.X + xrandom, Character.Torso.RotVelocity.Y + yrandom, Character.Torso.RotVelocity.Z + zrandom)
- local LeftC = Instance.new("Attachment")
- LeftC.Position = Vector3.new(0.5, 1, -0)
- LeftC.Name = "LeftCollarAttachment"
- local RightC = Instance.new("Attachment")
- RightC.Position = Vector3.new(-0.5, 1, -0)
- RightC.Name = "RightCollarAttachment"
- local LeftH = Instance.new("Attachment")
- LeftH.Position = Vector3.new(0.1, 1, -0)
- LeftH.Name = "LeftHipAttachment"
- local LeftHOrig = Instance.new("Attachment")
- LeftHOrig.Position = Vector3.new(-0.4, -1, 0)
- LeftHOrig.Name = "LeftHipAttachmentOrig"
- local RightH = Instance.new("Attachment")
- RightH.Position = Vector3.new(-0.1, 1, 0)
- RightH.Name = "RightHipAttachment"
- local RightHOrig = Instance.new("Attachment")
- RightHOrig.Position = Vector3.new(0.4, -1, 0)
- RightHOrig.Name = "RightHipAttachmentOrig"
- local NH = Instance.new("Attachment")
- NH.Position = Vector3.new(0, -0.5, 0)
- NH.Name = "NeckAttachment"
- local LeftArmdoll = Instance.new("BallSocketConstraint")
- LeftArmdoll.TwistLimitsEnabled = false
- LeftArmdoll.Name = "LeftArmdoll"
- local RightArmdoll = Instance.new("BallSocketConstraint")
- RightArmdoll.TwistLimitsEnabled = false
- RightArmdoll.Name = "RightArmdoll"
- local LeftLegdoll = Instance.new("BallSocketConstraint")
- LeftLegdoll.TwistLimitsEnabled = false
- LeftLegdoll.Name = "LeftLegdoll"
- local RightLegdoll = Instance.new("BallSocketConstraint")
- RightLegdoll.TwistLimitsEnabled = false
- RightLegdoll.Name = "RightLegdoll"
- local Neckdoll = Instance.new("BallSocketConstraint")
- Neckdoll.TwistLimitsEnabled = false
- Neckdoll.Name = "Neckdoll"
- LeftC:Clone().Parent = Character["Left Arm"]
- RightC:Clone().Parent = Character["Right Arm"]
- LeftH:Clone().Parent = Character["Left Leg"]
- LeftHOrig:Clone().Parent = Character.Torso
- RightH:Clone().Parent = Character["Right Leg"]
- RightHOrig:Clone().Parent = Character.Torso
- NH:Clone().Parent = Character["Head"]
- LeftArmdoll:Clone().Parent = Character.Torso
- RightArmdoll:Clone().Parent = Character.Torso
- LeftLegdoll:Clone().Parent = Character.Torso
- RightLegdoll:Clone().Parent = Character.Torso
- Neckdoll:Clone().Parent = Character.Torso
- Character.Torso.LeftArmdoll.Attachment0 = Character.Torso.LeftCollarAttachment
- Character.Torso.LeftArmdoll.Attachment1 = Character["Left Arm"].LeftCollarAttachment
- Character.Torso.RightArmdoll.Attachment0 = Character.Torso.RightCollarAttachment
- Character.Torso.RightArmdoll.Attachment1 = Character["Right Arm"].RightCollarAttachment
- Character.Torso.LeftLegdoll.Attachment0 = Character.Torso.LeftHipAttachmentOrig
- Character.Torso.LeftLegdoll.Attachment1 = Character["Left Leg"].LeftHipAttachment
- Character.Torso.RightLegdoll.Attachment0 = Character.Torso.RightHipAttachmentOrig
- Character.Torso.RightLegdoll.Attachment1 = Character["Right Leg"].RightHipAttachment
- Character.Torso.Neckdoll.Attachment0 = Character.Torso.NeckAttachment
- Character.Torso.Neckdoll.Attachment1 = Character.Head.NeckAttachment
- for i, v in pairs(Character:GetChildren()) do
- if v:IsA("BasePart") then
- if v.Name == "Right Arm" or v.Name == "Left Arm" then
- v.CustomPhysicalProperties = PhysicalProperties.new(0.1, 0, 0, 0, 0)
- local legpart = Instance.new("Part")
- legpart.Size = Vector3.new(1,2,1)
- legpart.Transparency = 1
- legpart.Parent = v
- local weld = Instance.new("ManualWeld")
- weld.Parent = script.Parent
- weld.Part0 = legpart
- weld.Part1 = v
- weld.C0 = CFrame.new(0,0,0)
- weld.C1 = CFrame.new(0,0,0)
- PhysicsService:SetPartCollisionGroup(legpart, "TopLimbs")
- elseif v.Name == "Left Leg" or v.Name == "Right Leg" then
- v.CustomPhysicalProperties = PhysicalProperties.new(0.1, 0, 0, 0, 0)
- local legpart = Instance.new("Part")
- legpart.Size = Vector3.new(1,2,1)
- legpart.Transparency = 1
- legpart.Parent = v
- local weld = Instance.new("ManualWeld")
- weld.Parent = script.Parent
- weld.Part0 = legpart
- weld.Part1 = v
- weld.C0 = CFrame.new(0,0,0)
- weld.C1 = CFrame.new(0,0,0)
- PhysicsService:SetPartCollisionGroup(legpart, "BottomLimbs")
- elseif v.Name == "Torso" or v.Name == "Head" then
- if v.Size == Vector3.new(2, 1, 1) then
- v.CustomPhysicalProperties = PhysicalProperties.new(0.1, 0, 0, 0, 0)
- local headpart = Instance.new("Part")
- headpart.Size = Vector3.new(2,1,1)
- headpart.Transparency = 1
- headpart.Parent = v
- local weld = Instance.new("ManualWeld")
- weld.Parent = script.Parent
- weld.Part0 = headpart
- weld.Part1 = v
- weld.C0 = CFrame.new(0,0,0)
- weld.C1 = CFrame.new(0,0,0)
- else
- local torsopart = Instance.new("Part")
- torsopart.Size = Vector3.new(2,2,1)
- torsopart.Transparency = 1
- torsopart.Parent = v
- local weld = Instance.new("ManualWeld")
- weld.Parent = script.Parent
- weld.Part0 = torsopart
- weld.Part1 = v
- weld.C0 = CFrame.new(0,0,0)
- weld.C1 = CFrame.new(0,0,0)
- end
- PhysicsService:SetPartCollisionGroup(v, "BignSmallLimbs")
- end
- end
- end
- for i, v in pairs(Character:GetDescendants()) do
- if v.ClassName == "Motor6D" then
- v:Remove()
- end
- end
- end
- function SelfTerminate()
- while wait() do
- if Character == nil then
- wait(1)
- script:Destroy()
- end
- end
- end
- function Talk(chatmessage)
- local WhatHeSaid = chatmessage
- if Character.Torso:FindFirstChild("BillboardGui") ~= nil then
- Character.Torso.BillboardGui:Destroy()
- elseif Character.Torso:FindFirstChild("SecondBoard") ~= nil then
- Character.Torso.SecondBoard:Destroy()
- end
- local BillboardGui = Instance.new("BillboardGui")
- BillboardGui.Parent = Character.Torso
- BillboardGui.StudsOffset = Vector3.new(0, 4, 0)
- BillboardGui.Size = UDim2.new(1, 0, 1, 0)
- local Text = Instance.new("TextLabel")
- Text.Text = ""
- Text.Size = UDim2.new(1, 0, 1, 0)
- Text.BackgroundTransparency = 1
- Text.Parent = BillboardGui
- Text.TextSize = 16
- Text.TextColor3 = Color3.new(1, 1, 1)
- Text.TextStrokeTransparency = 0
- Text.TextStrokeColor3 = Color3.new(0.4, 0.4, 0.4)
- Text.Text = WhatHeSaid
- wait(1)
- local chance = math.random(1, 2)
- local properties = {}
- properties.TextTransparency = 1
- properties.TextStrokeTransparency = 1
- if chance == 1 then
- properties.Rotation = -45
- else
- properties.Rotation = 45
- end
- local TweenInfo = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.In)
- local Tween = TweenService:Create(Text, TweenInfo, properties)
- Tween:Play()
- Tween.Completed:Connect(function()
- if BillboardGui then
- BillboardGui:Destroy()
- end
- end)
- properties.TextTransparency = nil
- properties.TextStrokeTransparency = nil
- properties.Rotation = nil
- Tween = TweenService:Create(BillboardGui, TweenInfo, properties)
- Tween:Play()
- end
- Character.Humanoid.Running:Connect(function(spd)
- if spd > 0.1 then
- if action == true or walking == true then
- return
- end
- if GunEquipped == true then
- walking = true
- GunWalkAnimation()
- else
- walking = true
- WalkAnimation()
- end
- elseif spd <= 0.1 then
- if action == true or walking == false then
- return
- end
- if GunEquipped == true then
- walking = false
- GunIdleAnimation()
- else
- walking = false
- IdleAnimation()
- end
- end
- end)
- Character.Humanoid.StateChanged:Connect(function(old, new)
- if freefall == true and Character.Humanoid:GetState() ~= Enum.HumanoidStateType.Freefall then
- freefall = false
- end
- if Character.Humanoid:GetState() == Enum.HumanoidStateType.Dead then
- Ragdoll()
- if Gun.Parent ~= nil and Gun:FindFirstChildOfClass("ManualWeld") then
- Gun.ManualWeld:Destroy()
- end
- wait(0.1)
- script:Destroy()
- elseif Character.Humanoid:GetState() == Enum.HumanoidStateType.Freefall then
- freefall = true
- FallingAnimation()
- end
- end)
- Playerr.Chatted:Connect(function(chatmessage)
- Talk(chatmessage)
- end)
- function stoprunning()
- if GunEquipped == false then
- return
- end
- shiftdown = false
- running = false
- Character.Humanoid.WalkSpeed = 10
- if walking == true then
- GunWalkAnimation()
- else
- GunIdleAnimation()
- end
- end
- RemoteEvent.OnServerEvent:Connect(function(player, contact, contact2)
- if contact == "gunhold" then
- GunTakeOut()
- elseif contact == "gunfire" then
- if GunEquipped == true then
- GunFire(contact2)
- end
- elseif contact == "explosionfire" then
- if GunEquipped == true and shotavailable == true then
- GunExplosionFire(contact2)
- end
- elseif contact == "startrunning" then
- if GunEquipped == false or action == true then
- return
- end
- if walking == true then
- shiftdown = true
- Character.Humanoid.WalkSpeed = 40
- GunRunAnimation()
- end
- elseif contact == "stoprunning" then
- shiftdown = false
- if GunEquipped == false or action == true or running == false then
- return
- end
- stoprunning()
- elseif contact == "musicswitch" then
- if music == false then
- YoshisIsland:Play()
- music = true
- else
- YoshisIsland:Stop()
- music = false
- end
- elseif contact == "tacklehug" then
- if GunEquipped == true then
- return
- end
- if action == true then
- if grabbed == true then
- if on == "true" then
- on = "more"
- return
- end
- end
- return
- end
- on = "true"
- Tackle()
- elseif contact == "stoptacklehug" then
- if GunEquipped == true then
- return
- end
- on = "false"
- end
- end)
- spawn(SelfTerminate)
- wait()
- IdleAnimation()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement