Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --By Rufus14
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Part2 = Instance.new("Part")
- Part3 = Instance.new("Part")
- Motor6D4 = Instance.new("Motor6D")
- Motor6D5 = Instance.new("Motor6D")
- Motor6D6 = Instance.new("Motor6D")
- Motor6D7 = Instance.new("Motor6D")
- Motor6D8 = Instance.new("Motor6D")
- Part9 = Instance.new("Part")
- Part10 = Instance.new("Part")
- Part11 = Instance.new("Part")
- SpecialMesh12 = Instance.new("SpecialMesh")
- Weld13 = Instance.new("Weld")
- Sound14 = Instance.new("Sound")
- Sound15 = Instance.new("Sound")
- Sound16 = Instance.new("Sound")
- Sound17 = Instance.new("Sound")
- Humanoid18 = Instance.new("Humanoid")
- Model19 = Instance.new("Model")
- Script20 = Instance.new("Script")
- Part21 = Instance.new("Part")
- Motor6D22 = Instance.new("Motor6D")
- Model23 = Instance.new("Model")
- ScreenGui24 = Instance.new("ScreenGui")
- Frame25 = Instance.new("Frame")
- Part26 = Instance.new("Part")
- Decal27 = Instance.new("Decal")
- Model0.Name = "SCP-096"
- Model0.Parent = mas
- Part1.Name = "Left Arm"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(-39.8000183, 4.49999714, -17.0007267, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Position = Vector3.new(-39.8000183, 4.49999714, -17.0007267)
- Part1.Color = Color3.new(0.905882, 0.905882, 0.92549)
- Part1.Size = Vector3.new(1, 5, 1)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Pearl")
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Pearl")
- Part2.Name = "Right Arm"
- Part2.Parent = Model0
- Part2.CFrame = CFrame.new(-39.8000183, 4.49999714, -20.0007267, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part2.Position = Vector3.new(-39.8000183, 4.49999714, -20.0007267)
- Part2.Color = Color3.new(0.905882, 0.905882, 0.92549)
- Part2.Size = Vector3.new(1, 5, 1)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.BrickColor = BrickColor.new("Pearl")
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.brickColor = BrickColor.new("Pearl")
- Part3.Name = "Torso"
- Part3.Parent = Model0
- Part3.CFrame = CFrame.new(-39.8000183, 5.49999714, -18.5007267, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part3.Position = Vector3.new(-39.8000183, 5.49999714, -18.5007267)
- Part3.Color = Color3.new(0.905882, 0.905882, 0.92549)
- Part3.Size = Vector3.new(1, 3, 2)
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.BrickColor = BrickColor.new("Pearl")
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.brickColor = BrickColor.new("Pearl")
- Motor6D4.Name = "Right Hip"
- Motor6D4.Parent = Part3
- Motor6D4.C0 = CFrame.new(0, -3.5, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D4.Part0 = Part3
- Motor6D4.Part1 = Part9
- Motor6D4.part1 = Part9
- Motor6D5.Name = "Right Shoulder"
- Motor6D5.Parent = Part3
- Motor6D5.C0 = CFrame.new(0, -1, -1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D5.Part0 = Part3
- Motor6D5.Part1 = Part2
- Motor6D5.part1 = Part2
- Motor6D6.Name = "Left Hip"
- Motor6D6.Parent = Part3
- Motor6D6.C0 = CFrame.new(0, -3.5, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D6.Part0 = Part3
- Motor6D6.Part1 = Part10
- Motor6D6.part1 = Part10
- Motor6D7.Name = "Left Shoulder"
- Motor6D7.Parent = Part3
- Motor6D7.C0 = CFrame.new(0, -1, 1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D7.Part0 = Part3
- Motor6D7.Part1 = Part1
- Motor6D7.part1 = Part1
- Motor6D8.Name = "Neck"
- Motor6D8.Parent = Part3
- Motor6D8.C0 = CFrame.new(0, 2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Motor6D8.Part0 = Part3
- Motor6D8.Part1 = Part11
- Motor6D8.part1 = Part11
- Part9.Name = "Right Leg"
- Part9.Parent = Model0
- Part9.CFrame = CFrame.new(-39.8000183, 1.99999714, -19.0007267, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part9.Position = Vector3.new(-39.8000183, 1.99999714, -19.0007267)
- Part9.Color = Color3.new(0.905882, 0.905882, 0.92549)
- Part9.Size = Vector3.new(1, 4, 1)
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.BrickColor = BrickColor.new("Pearl")
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part9.brickColor = BrickColor.new("Pearl")
- Part10.Name = "Left Leg"
- Part10.Parent = Model0
- Part10.CFrame = CFrame.new(-39.8000183, 1.99999714, -18.0007267, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part10.Position = Vector3.new(-39.8000183, 1.99999714, -18.0007267)
- Part10.Color = Color3.new(0.905882, 0.905882, 0.92549)
- Part10.Size = Vector3.new(1, 4, 1)
- Part10.BottomSurface = Enum.SurfaceType.Smooth
- Part10.BrickColor = BrickColor.new("Pearl")
- Part10.TopSurface = Enum.SurfaceType.Smooth
- Part10.brickColor = BrickColor.new("Pearl")
- Part11.Name = "Head"
- Part11.Parent = Model0
- Part11.CFrame = CFrame.new(-39.8000183, 7.49999714, -18.5007267, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part11.Position = Vector3.new(-39.8000183, 7.49999714, -18.5007267)
- Part11.Color = Color3.new(0.905882, 0.905882, 0.92549)
- Part11.Size = Vector3.new(1, 1, 2)
- Part11.BottomSurface = Enum.SurfaceType.Smooth
- Part11.BrickColor = BrickColor.new("Pearl")
- Part11.TopSurface = Enum.SurfaceType.Smooth
- Part11.brickColor = BrickColor.new("Pearl")
- SpecialMesh12.Parent = Part11
- SpecialMesh12.Scale = Vector3.new(1.20000005, 1.20000005, 1.20000005)
- Weld13.Parent = Part11
- Weld13.C0 = CFrame.new(-0.100000381, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld13.Part0 = Part11
- Weld13.Part1 = Part26
- Weld13.part1 = Part26
- Sound14.Name = "SCP-096 v0.8-0.9 Chasing Ambience(096_3)"
- Sound14.Parent = Part11
- Sound14.Looped = true
- Sound14.SoundId = "rbxassetid://261681311"
- Sound14.Volume = 3
- Sound15.Name = "SCP-096 (Idle) v0.2"
- Sound15.Parent = Part11
- Sound15.Looped = true
- Sound15.Playing = true
- Sound15.SoundId = "rbxassetid://153698726"
- Sound15.Volume = 2
- Sound16.Name = "SCP-096 (Face Viewed)"
- Sound16.Parent = Part11
- Sound16.SoundId = "rbxassetid://132820284"
- Sound16.Volume = 2
- Sound17.Name = "Guard attacked by SCP-096 (Old sound)"
- Sound17.Parent = Part11
- Sound17.SoundId = "rbxassetid://948779227"
- Sound17.Volume = 2
- Humanoid18.Parent = Model0
- Humanoid18.Health = 300
- Humanoid18.LeftLeg = Part10
- Humanoid18.MaxHealth = 300
- Humanoid18.RightLeg = Part9
- Humanoid18.Torso = Part21
- Humanoid18.maxHealth = 300
- Model19.Name = "(REMOVE THAT) Created by Rufus14"
- Model19.Parent = Model0
- Script20.Name = "SCP AI"
- Script20.Parent = Model0
- table.insert(cors,sandbox(Script20,function()
- --Fully made by Rufus14 (with a little help from Weld Plugin by popomcnuggets)
- --also script is commented so you can learn something
- --animations are made with :lerp()
- --you can convert the model to use it in script builder
- --ai is kinda bad
- local scp = Model0
- local torso = scp.Torso
- local head = scp.Head
- local leftarm = scp["Left Arm"]
- local rightarm = scp["Right Arm"]
- local leftleg = scp["Left Leg"]
- local rightleg = scp["Right Leg"]
- local scphumanoid = scp.Humanoid
- local deathgui = scp["This is what player sees after death"].Death
- local idlesound = head["SCP-096 (Idle) v0.2"]
- local chasesound = head["SCP-096 v0.8-0.9 Chasing Ambience(096_3)"]
- local ragesound = head["SCP-096 (Face Viewed)"]
- local killsomeone = head["Guard attacked by SCP-096 (Old sound)"]
- local face = scp.facepart.face
- --Motor6D's
- local neck = torso.Neck
- local leftshoulder = torso["Left Shoulder"]
- local rightshoulder = torso["Right Shoulder"]
- local lefthip = torso["Left Hip"]
- local righthip = torso["Right Hip"]
- local root = scp.HumanoidRootPart.RootJoint
- --
- local sight = 5
- local sitting = true
- local running = false
- local canchase = true
- scphumanoid.WalkSpeed = 0
- scphumanoid.JumpPower = 0
- function chase(victim) --chase the player
- if canchase then
- canchase = false
- sitting = false
- running = false
- local victimhead = victim.Head
- idlesound:Stop()
- ragesound:Play()
- scphumanoid.WalkSpeed = 0
- scphumanoid.JumpPower = 0
- face.Texture = "http://www.roblox.com/asset/?id=168024772"
- for i = 0,0.15 , 0.002 do --animate him
- root.C0 = root.C0:lerp(CFrame.new(0, 0, 0, 0.98480773, 0.173648298, 0, -0.173648298, 0.98480773, 0, 0, 0, 1),i)
- rightshoulder.C0 = rightshoulder.C0:lerp(CFrame.new(-0.800001144, 0.642426491, -1.80661774, 1, 0, 0, 0, -0.642787874, 0.766044259, 0, -0.766044259, -0.642787814),i)
- leftshoulder.C0 = leftshoulder.C0:lerp(CFrame.new(-0.399999619, 0.675328255, 1.86571693, -1.1920929e-07, -1.49011612e-07, -0.99999994, -0.766044557, -0.642787516, 1.34110451e-07, -0.642787397, 0.766044497, -1.1920929e-07),i)
- lefthip.C0 = lefthip.C0:lerp(CFrame.new(0, -3.5, 0.5, 0.98480773, -0.173648298, 0, 0.173648298, 0.98480773, 0, 0, 0, 1),i)
- righthip.C0 = righthip.C0:lerp(CFrame.new(0, -3.5, -0.5, 0.98480773, -0.173648298, 0, 0.173648298, 0.98480773, 0, 0, 0, 1),i)
- neck.C0 = neck.C0:lerp(CFrame.new(-1.90734863e-06, 2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
- wait()
- end
- for i = 1,7 do --loop
- for i = 0.3,0.5 , 0.015 do --rage animation
- root.C0 = root.C0:lerp(CFrame.new(0, 0, 0, 0.98480773, 0.163175985, -0.0593911894, -0.173648253, 0.925416589, -0.336824059, -1.86264515e-08, 0.342020094, 0.939692616),i)
- rightshoulder.C0 = rightshoulder.C0:lerp(CFrame.new(-0.800001144, 0.642426491, -1.80661774, 1, 0, 0, 0, -0.642787874, 0.766044259, 0, -0.766044259, -0.642787814),i)
- leftshoulder.C0 = leftshoulder.C0:lerp(CFrame.new(-0.399999619, 0.675328255, 1.86571693, -1.1920929e-07, -1.49011612e-07, -0.99999994, -0.766044557, -0.642787516, 1.34110451e-07, -0.642787397, 0.766044497, -1.1920929e-07),i)
- lefthip.C0 = lefthip.C0:lerp(CFrame.new(-0.0297870636, -3.33106899, 1.07283974, 0.98480773, -0.163175955, -0.0593911335, 0.173648208, 0.925416708, 0.336823761, -2.60770321e-08, -0.342019826, 0.939692676),i)
- righthip.C0 = righthip.C0:lerp(CFrame.new(0.0281715393, -3.65976715, -0.26830864, 0.98480773, -0.171010181, -0.0301537365, 0.173648298, 0.969846249, 0.171010152, -2.60770321e-08, -0.173648313, 0.984807611),i)
- neck.C0 = neck.C0:lerp(CFrame.new(-1.90734863e-06, 2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
- wait()
- end
- for i = 0.3,0.5 , 0.015 do --rage animation
- root.C0 = root.C0:lerp(CFrame.new(0, 0, 0, 0.934456408, -0.351089597, -0.0593911372, 0.312324762, 0.888258278, -0.336824119, 0.171010107, 0.29619813, 0.939692616),i)
- rightshoulder.C0 = rightshoulder.C0:lerp(CFrame.new(-0.800001144, 0.642426491, -1.80661774, 1, 0, 0, 0, -0.642787874, 0.766044259, 0, -0.766044259, -0.642787814),i)
- leftshoulder.C0 = leftshoulder.C0:lerp(CFrame.new(-0.399999619, 0.675328255, 1.86571693, -1.1920929e-07, -1.49011612e-07, -0.99999994, -0.766044557, -0.642787516, 1.34110451e-07, -0.642787397, 0.766044497, -1.1920929e-07),i)
- lefthip.C0 = lefthip.C0:lerp(CFrame.new(-0.602340698, -3.0763092, 1.15816879, 0.934456408, 0.351089299, -0.0593911409, -0.312324613, 0.888258517, 0.336823583, 0.171009839, -0.296197772, 0.939692676),i)
- righthip.C0 = righthip.C0:lerp(CFrame.new(-0.773321152, -3.47119474, -0.0934143066, 0.938373566, 0.344305009, -0.0301536173, -0.334539622, 0.92673558, 0.17101036, 0.0868241563, -0.150384039, 0.98480773),i)
- neck.C0 = neck.C0:lerp(CFrame.new(-1.90734863e-06, 2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
- wait()
- end
- for i = 0.3,0.5 , 0.015 do --rage animation
- root.C0 = root.C0:lerp(CFrame.new(0, 0, 0, 0.934456408, -0.230774283, -0.271172374, 0.312324822, 0.896951497, 0.312939584, 0.171010077, -0.377122283, 0.910238624),i)
- rightshoulder.C0 = rightshoulder.C0:lerp(CFrame.new(-0.800001144, 0.642426491, -1.80661774, 1, 0, 0, 0, -0.642787874, 0.766044259, 0, -0.766044259, -0.642787814),i)
- leftshoulder.C0 = leftshoulder.C0:lerp(CFrame.new(-0.399999619, 0.675328255, 1.86571693, -1.1920929e-07, -1.49011612e-07, -0.99999994, -0.766044557, -0.642787516, 1.34110451e-07, -0.642787397, 0.766044497, -1.1920929e-07),i)
- lefthip.C0 = lefthip.C0:lerp(CFrame.new(-0.682954788, -3.65747166, 0.0301790237, 0.970848203, 0.216018811, 0.103873909, -0.186457753, 0.952938259, -0.239044309, -0.150623471, 0.212707579, 0.965436697),i)
- righthip.C0 = righthip.C0:lerp(CFrame.new(-0.934883118, -2.97838402, -1.17556, 0.949593663, 0.283100039, 0.13463366, -0.20653595, 0.88808161, -0.4106749, -0.235827699, 0.362167627, 0.901787043),i)
- neck.C0 = neck.C0:lerp(CFrame.new(-1.90734863e-06, 2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
- wait()
- end
- end
- for i = 0,1 , 0.07 do --scream animation
- root.C0 = root.C0:lerp(CFrame.new(0, 0, 0, 0.939692616, 0.342020154, 0, -0.342020154, 0.939692616, 0, 0, 0, 1),i)
- rightshoulder.C0 = rightshoulder.C0:lerp(CFrame.new(0, -0.124749184, -2.85422897, 1, 0, 0, 0, 0.766044497, -0.642787635, 0, 0.642787635, 0.766044438),i)
- leftshoulder.C0 = leftshoulder.C0:lerp(CFrame.new(0, -0.124749184, 2.85422897, 1, 0, 1.49011612e-08, 0, 0.766044378, 0.642787695, 0, -0.642787695, 0.766044378),i)
- lefthip.C0 = lefthip.C0:lerp(CFrame.new(0.751754761, -3.42638397, 0.5, 0.939692616, -0.342020154, 0, 0.342020154, 0.939692616, 0, 0, 0, 1),i)
- righthip.C0 = righthip.C0:lerp(CFrame.new(0.563816071, -3.29478741, -0.5, 0.939692616, -0.342020154, 0, 0.342020154, 0.939692616, 0, 0, 0, 1),i)
- neck.C0 = neck.C0:lerp(CFrame.new(0.446411133, 1.97320461, 0, 0.866025448, 0.499999881, 0, -0.499999881, 0.866025448, 0, 0, 0, 1),i)
- wait()
- end
- wait(0.4)
- chasesound:Play()
- running = true
- scphumanoid.WalkSpeed = 35
- scphumanoid.JumpPower = 50
- local function check() --check if scp is really close to the player
- while wait() do
- if (torso.Position - victimhead.Position).magnitude < 7 then --if player is closer to scp than 9 studs then kill
- local playergui = game.Players[victim.Name]:findFirstChildOfClass("PlayerGui") --100th line yay
- if playergui then
- face.Texture = "http://www.roblox.com/asset/?id=146142799"
- local deathguiclone = deathgui:Clone()
- deathguiclone.Parent = playergui
- victim:BreakJoints()
- killsomeone:Play()
- chasesound:Stop()
- sitting = true
- running = false
- scphumanoid.WalkSpeed = 0
- scphumanoid.JumpPower = 0
- wait(3)
- idlesound:Play()
- wait(2)
- if deathguiclone.Parent ~= nil then
- deathguiclone:destroy()
- end
- wait(2)
- canchase = true
- break
- end
- end
- end
- end
- local function chase()
- while wait() do
- local path = game:GetService("PathfindingService"):FindPathAsync(torso.Position, victimhead.Position) --find the path from scp's torso to victims head
- local waypoints = path:GetWaypoints() --get the every point of the path
- if path.Status == Enum.PathStatus.Success then
- for i,v in pairs(waypoints) do --for every point existing..
- local allow = 0
- scphumanoid:MoveTo(v.Position) --...walk to it
- while (torso.Position - v.Position).magnitude > 7.5 and allow < 20 do --if scp is further than 8 studs, keep walking to it
- allow = allow + 1
- scphumanoid:MoveTo(v.Position)
- wait()
- end
- if v.Action == Enum.PathWaypointAction.Jump then
- scphumanoid.Jump = true
- end
- scphumanoid.WalkToPoint = victimhead.Position
- end
- scphumanoid.WalkToPoint = victimhead.Position
- end
- end
- end
- spawn(check) --run that check function
- spawn(chase) --chase
- end
- end
- function dead()
- wait(5)
- Model0:Destroy()
- end
- scphumanoid.Died:connect(dead)
- while wait() do --check animations and other things
- for i,v in pairs(game.Players:GetChildren()) do --scans all the players
- if v.Character then --if player is even spawned
- local victimhead = v.Character:findFirstChild("Head") --finds head
- local humanoid = v.Character:findFirstChildOfClass("Humanoid") --finds humanoid
- if humanoid and victimhead then --if script found humanoid and head
- if (victimhead.Position - head.Position).magnitude < sight then
- chase(v.Character) --chase who
- end
- end
- end
- end
- if running then --this is the walking animation
- for i = 0.2,0.8 , 0.09 do
- if running then
- rightshoulder.C0 = rightshoulder.C0:lerp(CFrame.new(-2.19622421, 2.27327061, -1.57830048, -0.351089299, 0.888258278, -0.296198368, -0.754010975, -0.455760926, -0.473021507, -0.55516088, 0.0572640449, 0.829769373),i)
- leftshoulder.C0 = leftshoulder.C0:lerp(CFrame.new(-2.31931305, 1.76000595, 1.52594185, -0.336824059, 0.903335214, 0.26558435, -0.820529103, -0.41995579, 0.387774497, 0.461824089, -0.0873079151, 0.882664025),i)
- lefthip.C0 = lefthip.C0:lerp(CFrame.new(1.21138191, -3.04071045, 0.5, 0.766044378, -0.642787695, 0, 0.642787695, 0.766044378, 0, 0, 0, 1),i)
- righthip.C0 = righthip.C0:lerp(CFrame.new(-2.25595284, -1.97990799, -0.5, 0.342020154, 0.939692616, 0, -0.939692616, 0.342020154, 0, 0, 0, 1),i)
- neck.C0 = neck.C0:lerp(CFrame.new(0.446409225, 1.97320557, 0, 0.866025448, 0.499999911, 0, -0.499999911, 0.866025448, 0, 0, 0, 1),i)
- root.C0 = root.C0:lerp(CFrame.new(0, 0, 0, 0.866025448, -0.499999911, 0, 0.499999911, 0.866025448, 0, 0, 0, 1) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0.5),i)
- wait()
- end
- end
- for i = 0.2,0.8 , 0.09 do
- if running then
- rightshoulder.C0 = rightshoulder.C0:lerp(CFrame.new( -2.27283096, 1.94459152, -1.79301262, -0.191510916, 0.935729742, -0.296198308, -0.821698189, -0.317904055, -0.473021477, -0.53678298, 0.15279679, 0.829769492),i)
- leftshoulder.C0 = leftshoulder.C0:lerp(CFrame.new(-2.07076645, 2.13161564, 1.51448631, -0.48856923, 0.831122816, 0.26558429, -0.735139072, -0.556058884, 0.387774587, 0.469968796, -0.00578667223, 0.882664025),i)
- lefthip.C0 = lefthip.C0:lerp(CFrame.new(-2.51899147, -1.46453857, 0.5, 0.173648268, 0.98480773, 0, -0.98480773, 0.173648268, 0, 0, 0, 1),i)
- righthip.C0 = righthip.C0:lerp(CFrame.new(1.8448391, -2.40829563, -0.5, 0.342020154, -0.939692557, 0, 0.939692557, 0.342020154, 0, 0, 0, 1),i)
- neck.C0 = neck.C0:lerp(CFrame.new(0.446409225, 1.97320557, 0, 0.866025448, 0.499999911, 0, -0.499999911, 0.866025448, 0, 0, 0, 1),i)
- root.C0 = root.C0:lerp(CFrame.new(0, 0, 0, 0.866025448, -0.499999911, 0, 0.499999911, 0.866025448, 0, 0, 0, 1) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0.5),i)
- wait()
- end
- end
- end
- if sitting then --this is the sitting animation
- for i = 0.2,0.8 , 0.03 do
- if sitting then
- root.C0 = root.C0:lerp(CFrame.new(0.277837753, -3.77569246, 0, 0.98480773, -0.173648298, 0, 0.173648298, 0.98480773, 0, 0, 0, 1),i)
- rightshoulder.C0 = rightshoulder.C0:lerp(CFrame.new(-1.53501892, 0.0072479248, -0.936183929, 0.499999881, 0.813797832, 0.296198159, -0.866025567, 0.469846159, 0.171010077, 5.96046448e-08, -0.342020154, 0.939692616),i)
- leftshoulder.C0 = leftshoulder.C0:lerp(CFrame.new(-1.73340797, 0.030960083, 1.0417347, 0.469846249, 0.742043018, -0.478138745, -0.866025567, 0.492403746, -0.0868242159, 0.171009973, 0.454874337, 0.873982251),i)
- lefthip.C0 = lefthip.C0:lerp(CFrame.new(-1.88126564, 0.0378093719, 0.5, 0.766044378, 0.642787695, 0, -0.642787695, 0.766044378, 0, 0, 0, 1),i)
- righthip.C0 = righthip.C0:lerp(CFrame.new(-1.77682304, 0.0369753838, -0.5, 0.766044378, 0.642787695, 0, -0.642787695, 0.766044378, 0, 0, 0, 1),i)
- neck.C0 = neck.C0:lerp(CFrame.new(-0.18793869, 1.93159628, 0, 0.939692616, -0.342020154, 0, 0.342020154, 0.939692616, 0, 0, 0, 1),i)
- wait()
- end
- end
- end
- end
- end))
- Part21.Name = "HumanoidRootPart"
- Part21.Parent = Model0
- Part21.CFrame = CFrame.new(-39.8000183, 5.49999714, -18.5007267, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part21.Position = Vector3.new(-39.8000183, 5.49999714, -18.5007267)
- Part21.Color = Color3.new(0.905882, 0.905882, 0.92549)
- Part21.Transparency = 1
- Part21.Size = Vector3.new(1, 3, 2)
- Part21.BottomSurface = Enum.SurfaceType.Smooth
- Part21.BrickColor = BrickColor.new("Pearl")
- Part21.TopSurface = Enum.SurfaceType.Smooth
- Part21.brickColor = BrickColor.new("Pearl")
- Motor6D22.Name = "RootJoint"
- Motor6D22.Parent = Part21
- Motor6D22.Part0 = Part21
- Motor6D22.Part1 = Part3
- Motor6D22.part1 = Part3
- Model23.Name = "This is what player sees after death"
- Model23.Parent = Model0
- ScreenGui24.Name = "Death"
- ScreenGui24.Parent = Model23
- Frame25.Parent = ScreenGui24
- Frame25.Size = UDim2.new(2, 0, 2, 0)
- Frame25.BackgroundColor = BrickColor.new("Really black")
- Frame25.BackgroundColor3 = Color3.new(0, 0, 0)
- Part26.Name = "facepart"
- Part26.Parent = Model0
- Part26.CFrame = CFrame.new(-39.9000168, 7.49999714, -18.5007267, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part26.Position = Vector3.new(-39.9000168, 7.49999714, -18.5007267)
- Part26.Transparency = 1
- Part26.Size = Vector3.new(1, 1, 1)
- Part26.BottomSurface = Enum.SurfaceType.Smooth
- Part26.TopSurface = Enum.SurfaceType.Smooth
- Decal27.Name = "face"
- Decal27.Parent = Part26
- Decal27.Texture = "http://www.roblox.com/asset/?id=146142799"
- Decal27.Face = Enum.NormalId.Left
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Add Comment
Please, Sign In to add comment