Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- SpecialMesh2 = Instance.new("SpecialMesh")
- Part3 = Instance.new("Part")
- Part4 = Instance.new("Part")
- Part5 = Instance.new("Part")
- Part6 = Instance.new("Part")
- Part7 = Instance.new("Part")
- Motor6D8 = Instance.new("Motor6D")
- Motor6D9 = Instance.new("Motor6D")
- Motor6D10 = Instance.new("Motor6D")
- Motor6D11 = Instance.new("Motor6D")
- Motor6D12 = Instance.new("Motor6D")
- Part13 = Instance.new("Part")
- Motor6D14 = Instance.new("Motor6D")
- Script15 = Instance.new("Script")
- Script16 = Instance.new("Script")
- Part17 = Instance.new("Part")
- Decal18 = Instance.new("Decal")
- Decal19 = Instance.new("Decal")
- Sound20 = Instance.new("Sound")
- Sound21 = Instance.new("Sound")
- Script22 = Instance.new("Script")
- NumberValue23 = Instance.new("NumberValue")
- Script24 = Instance.new("Script")
- ScreenGui25 = Instance.new("ScreenGui")
- ImageLabel26 = Instance.new("ImageLabel")
- ImageLabel27 = Instance.new("ImageLabel")
- LocalScript28 = Instance.new("LocalScript")
- Sound29 = Instance.new("Sound")
- Frame30 = Instance.new("Frame")
- Frame31 = Instance.new("Frame")
- ImageLabel32 = Instance.new("ImageLabel")
- LocalScript33 = Instance.new("LocalScript")
- Humanoid34 = Instance.new("Humanoid")
- Camera35 = Instance.new("Camera")
- Model0.Name = " "
- Model0.Parent = mas
- Part1.Name = "Head"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(134.400558, 4.50045204, 12.0091553, 0.000534999941, 0.000846001378, 0.999999523, -4.49060754e-12, 0.999998927, -0.000846002076, -0.999999881, 4.52606344e-07, 0.000534999766)
- Part1.Orientation = Vector3.new(0.049999997, 89.9700012, 0)
- Part1.Position = Vector3.new(134.400558, 4.50045204, 12.0091553)
- Part1.Rotation = Vector3.new(57.6899986, 89.9399948, -57.6899986)
- Part1.Color = Color3.new(1, 0.8, 0.6)
- Part1.Transparency = 0.99000000953674
- Part1.Size = Vector3.new(2, 1, 1)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Pastel brown")
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Pastel brown")
- Part1.FormFactor = Enum.FormFactor.Symmetric
- Part1.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh2.Parent = Part1
- SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
- Part3.Name = "Right Arm"
- Part3.Parent = Model0
- Part3.CFrame = CFrame.new(134.400101, 3.00045395, 10.5091543, 0.000534999941, 0.000846001261, 0.999999523, -4.49060754e-12, 0.999998808, -0.000846002076, -0.999999881, 4.52606287e-07, 0.000534999766)
- Part3.Orientation = Vector3.new(0.049999997, 89.9700012, 0)
- Part3.Position = Vector3.new(134.400101, 3.00045395, 10.5091543)
- Part3.Rotation = Vector3.new(57.6899986, 89.9399948, -57.6899986)
- Part3.Color = Color3.new(1, 0.8, 0.6)
- Part3.Transparency = 1
- Part3.Size = Vector3.new(1, 2, 1)
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.BrickColor = BrickColor.new("Pastel brown")
- Part3.CanCollide = false
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.brickColor = BrickColor.new("Pastel brown")
- Part3.FormFactor = Enum.FormFactor.Symmetric
- Part3.formFactor = Enum.FormFactor.Symmetric
- Part4.Name = "Left Arm"
- Part4.Parent = Model0
- Part4.CFrame = CFrame.new(134.398483, 3.00045395, 13.5091543, 0.000534999941, 0.000846001261, 0.999999523, -4.49060754e-12, 0.999998808, -0.000846002076, -0.999999881, 4.52606287e-07, 0.000534999766)
- Part4.Orientation = Vector3.new(0.049999997, 89.9700012, 0)
- Part4.Position = Vector3.new(134.398483, 3.00045395, 13.5091543)
- Part4.Rotation = Vector3.new(57.6899986, 89.9399948, -57.6899986)
- Part4.Color = Color3.new(1, 0.8, 0.6)
- Part4.Transparency = 1
- Part4.Size = Vector3.new(1, 2, 1)
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.BrickColor = BrickColor.new("Pastel brown")
- Part4.CanCollide = false
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.brickColor = BrickColor.new("Pastel brown")
- Part4.FormFactor = Enum.FormFactor.Symmetric
- Part4.formFactor = Enum.FormFactor.Symmetric
- Part5.Name = "Right Leg"
- Part5.Parent = Model0
- Part5.CFrame = CFrame.new(134.397873, 1.00045621, 11.5091534, 0.000534999941, 0.000846001261, 0.999999523, -4.49060754e-12, 0.999998808, -0.000846002076, -0.999999881, 4.52606287e-07, 0.000534999766)
- Part5.Orientation = Vector3.new(0.049999997, 89.9700012, 0)
- Part5.Position = Vector3.new(134.397873, 1.00045621, 11.5091534)
- Part5.Rotation = Vector3.new(57.6899986, 89.9399948, -57.6899986)
- Part5.Color = Color3.new(1, 0.8, 0.6)
- Part5.Transparency = 1
- Part5.Size = Vector3.new(1, 2, 1)
- Part5.BottomSurface = Enum.SurfaceType.Smooth
- Part5.BrickColor = BrickColor.new("Pastel brown")
- Part5.CanCollide = false
- Part5.TopSurface = Enum.SurfaceType.Smooth
- Part5.brickColor = BrickColor.new("Pastel brown")
- Part5.FormFactor = Enum.FormFactor.Symmetric
- Part5.formFactor = Enum.FormFactor.Symmetric
- Part6.Name = "Left Leg"
- Part6.Parent = Model0
- Part6.CFrame = CFrame.new(134.397339, 1.00045621, 12.5091534, 0.000534999941, 0.000846001261, 0.999999523, -4.49060754e-12, 0.999998808, -0.000846002076, -0.999999881, 4.52606287e-07, 0.000534999766)
- Part6.Orientation = Vector3.new(0.049999997, 89.9700012, 0)
- Part6.Position = Vector3.new(134.397339, 1.00045621, 12.5091534)
- Part6.Rotation = Vector3.new(57.6899986, 89.9399948, -57.6899986)
- Part6.Color = Color3.new(1, 0.8, 0.6)
- Part6.Transparency = 1
- Part6.Size = Vector3.new(1, 2, 1)
- Part6.BottomSurface = Enum.SurfaceType.Smooth
- Part6.BrickColor = BrickColor.new("Pastel brown")
- Part6.CanCollide = false
- Part6.TopSurface = Enum.SurfaceType.Smooth
- Part6.brickColor = BrickColor.new("Pastel brown")
- Part6.FormFactor = Enum.FormFactor.Symmetric
- Part6.formFactor = Enum.FormFactor.Symmetric
- Part7.Name = "Torso"
- Part7.Parent = Model0
- Part7.CFrame = CFrame.new(134.399292, 3.00045395, 12.0091543, 0.000534999941, 0.000846001378, 0.999999523, -4.49060754e-12, 0.999998927, -0.000846002076, -0.999999881, 4.52606344e-07, 0.000534999766)
- Part7.Orientation = Vector3.new(0.049999997, 89.9700012, 0)
- Part7.Position = Vector3.new(134.399292, 3.00045395, 12.0091543)
- Part7.Rotation = Vector3.new(57.6899986, 89.9399948, -57.6899986)
- Part7.Color = Color3.new(1, 0.8, 0.6)
- Part7.Transparency = 1
- Part7.Size = Vector3.new(2, 2, 1)
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.BrickColor = BrickColor.new("Pastel brown")
- Part7.CanCollide = false
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part7.brickColor = BrickColor.new("Pastel brown")
- Part7.FormFactor = Enum.FormFactor.Symmetric
- Part7.formFactor = Enum.FormFactor.Symmetric
- Motor6D8.Name = "Left Hip"
- Motor6D8.Parent = Part7
- Motor6D8.MaxVelocity = 0.10000000149012
- Motor6D8.C0 = CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
- Motor6D8.C1 = CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
- Motor6D8.Part0 = Part7
- Motor6D8.Part1 = Part6
- Motor6D8.part1 = Part6
- Motor6D9.Name = "Right Hip"
- Motor6D9.Parent = Part7
- Motor6D9.MaxVelocity = 0.10000000149012
- Motor6D9.C0 = CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08)
- Motor6D9.C1 = CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
- Motor6D9.Part0 = Part7
- Motor6D9.Part1 = Part5
- Motor6D9.part1 = Part5
- Motor6D10.Name = "Left Shoulder"
- Motor6D10.Parent = Part7
- Motor6D10.MaxVelocity = 0.10000000149012
- Motor6D10.C0 = CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
- Motor6D10.C1 = CFrame.new(0.5, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
- Motor6D10.Part0 = Part7
- Motor6D10.Part1 = Part4
- Motor6D10.part1 = Part4
- Motor6D11.Name = "Right Shoulder"
- Motor6D11.Parent = Part7
- Motor6D11.MaxVelocity = 0.10000000149012
- Motor6D11.C0 = CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08)
- Motor6D11.C1 = CFrame.new(-0.5, 0.5, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
- Motor6D11.Part0 = Part7
- Motor6D11.Part1 = Part3
- Motor6D11.part1 = Part3
- Motor6D12.Name = "Neck"
- Motor6D12.Parent = Part7
- Motor6D12.MaxVelocity = 0.10000000149012
- Motor6D12.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D12.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D12.Part0 = Part7
- Motor6D12.Part1 = Part1
- Motor6D12.part1 = Part1
- Part13.Name = "HumanoidRootPart"
- Part13.Parent = Model0
- Part13.CFrame = CFrame.new(134.399292, 3.00045395, 12.0091543, 0.000534999941, 0.000846001378, 0.999999523, -4.49060754e-12, 0.999998927, -0.000846002076, -0.999999881, 4.52606344e-07, 0.000534999766)
- Part13.Orientation = Vector3.new(0.049999997, 89.9700012, 0)
- Part13.Position = Vector3.new(134.399292, 3.00045395, 12.0091543)
- Part13.Rotation = Vector3.new(57.6899986, 89.9399948, -57.6899986)
- Part13.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Part13.Transparency = 1
- Part13.Size = Vector3.new(2, 2, 1)
- Part13.BottomSurface = Enum.SurfaceType.Smooth
- Part13.BrickColor = BrickColor.new("Bright blue")
- Part13.TopSurface = Enum.SurfaceType.Smooth
- Part13.brickColor = BrickColor.new("Bright blue")
- Part13.FormFactor = Enum.FormFactor.Symmetric
- Part13.formFactor = Enum.FormFactor.Symmetric
- Motor6D14.Name = "Root Hip"
- Motor6D14.Parent = Part13
- Motor6D14.MaxVelocity = 0.10000000149012
- Motor6D14.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D14.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- Motor6D14.Part0 = Part13
- Motor6D14.Part1 = Part7
- Motor6D14.part1 = Part7
- Script15.Name = "AI Chase"
- Script15.Parent = Model0
- table.insert(cors,sandbox(Script15,function()
- -- 22/5/2018: So turns out, Baldi without a humanoid body is too skinny to move --
- --DuruTeru
- --[[
- ____________________________________________________________________________________________________________________
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- ____________________________________________________________________________________________________________________
- ___ ___
- ( ) ( ) .-.
- .--. .--. | |_ | |_ ( __) ___ .-. .--. .--.
- / _ \ / \ ( __) ( __) (''") ( ) \ / \ / _ \
- . .' `. ; | .-. ; | | | | | | | .-. . ; ,-. ' . .' `. ;
- | ' | | | | | | | | ___ | | ___ | | | | | | | | | | | ' | |
- _\_`.(___) | |/ | | |( ) | |( ) | | | | | | | | | | _\_`.(___)
- ( ). '. | ' _.' | | | | | | | | | | | | | | | | | | ( ). '.
- | | `\ | | .'.-. | ' | | | ' | | | | | | | | | ' | | | | `\ |
- ; '._,' ' ' `-' / ' `-' ; ' `-' ; | | | | | | ' `-' | ; '._,' '
- '.___.' `.__.' `.__. `.__. (___) (___)(___) `.__. | '.___.'
- ( `-' ;
- `.__.
- ____________________________________________________________________________________________________________________
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- ____________________________________________________________________________________________________________________
- --]]
- local SearchDistance = 100000 -- How far a player can be before it detects you
- local ZombieDamage = 0 -- How much damage the Zombie inficts towards the player
- --[[
- ____________________________________________________________________________________________________________________
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- ____________________________________________________________________________________________________________________
- -- OPTIONAL --]]
- local canWander = false
- local WanderX, WanderZ = 30, 30
- -- How many studs the zombie can wander on the x and z axis in studs
- --]]
- function getHumanoid(model)
- for _, v in pairs(model:GetChildren()) do
- if v:IsA'Humanoid' then
- return v
- end
- end
- end
- local zombie = script.Parent
- local human = getHumanoid(zombie)
- local hroot = zombie.HumanoidRootPart
- local zspeed = hroot.Velocity.magnitude
- local pfs = game:GetService("PathfindingService")
- function GetPlayerNames()
- local players = game:GetService('Players'):GetChildren()
- local name = nil
- for _, v in pairs(players) do
- if v:IsA'Player' then
- name = tostring(v.Name)
- end
- end
- return name
- end
- spawn(function()
- while wait() do
- print("THIS BALDI MODEL WAS MADE BY ANPHU04, DO NOT TRUST ANYBODY THAT USES THIS!")
- end
- end)
- function GetPlayersBodyParts(t)
- local torso = t
- if torso then
- local figure = torso.Parent
- for _, v in pairs(figure:GetChildren()) do
- if v:IsA'Part' then
- return v.Name
- end
- end
- else
- return "HumanoidRootPart"
- end
- end
- function GetTorso(part)
- local chars = game.Workspace:GetChildren()
- local torso = nil
- for _, v in pairs(chars) do
- if v:IsA'Model' and v ~= script.Parent and v.Name == GetPlayerNames() then
- local charRoot = v:FindFirstChild'HumanoidRootPart'
- if (charRoot.Position - part).magnitude < SearchDistance then
- torso = charRoot
- end
- end
- end
- return torso
- end
- for _, zambieparts in pairs(zombie:GetChildren()) do
- if zambieparts:IsA'Part' then
- zambieparts.Touched:connect(function(p)
- if p.Parent.Name == GetPlayerNames() and p.Parent.Name ~= zombie.Name then -- damage
- local enemy = p.Parent
- local enemyhuman = getHumanoid(enemy)
- enemyhuman:TakeDamage(ZombieDamage)
- end
- end)
- end
- end
- -- no touchy
- local path
- local waypoint
- local oldpoints
- local isWandering = 0
- if canWander then
- spawn(function()
- while isWandering == 0 do
- isWandering = 1
- local desgx, desgz = hroot.Position.x + math.random(-WanderX, WanderX), hroot.Position.z + math.random(-WanderZ, WanderZ)
- human:MoveTo( Vector3.new(desgx, 0, desgz) )
- wait(math.random(4, 6))
- isWandering = 0
- end
- end)
- end
- while wait() do
- local enemytorso = GetTorso(hroot.Position)
- if enemytorso ~= nil then -- if player detected
- isWandering = 1
- local function checkw(t)
- local ci = 3
- if ci > #t then
- ci = 3
- end
- if t[ci] == nil and ci < #t then
- repeat
- ci = ci + 1
- wait()
- until t[ci] ~= nil
- return Vector3.new(1, 0, 0) + t[ci]
- else
- ci = 3
- return t[ci]
- end
- end
- path = pfs:FindPathAsync(hroot.Position, enemytorso.Position)
- waypoint = path:GetWaypoints()
- oldpoints = waypoint
- local connection;
- local direct = Vector3.FromNormalId(Enum.NormalId.Front)
- local ncf = hroot.CFrame * CFrame.new(direct)
- direct = ncf.p.unit
- local rootr = Ray.new(hroot.Position, direct)
- local phit, ppos = game.Workspace:FindPartOnRay(rootr, hroot)
- if path and waypoint or checkw(waypoint) then
- if checkw(waypoint) ~= nil and checkw(waypoint).Action == Enum.PathWaypointAction.Walk then
- human:MoveTo( checkw(waypoint).Position )
- human.Jump = false
- end
- -- CANNOT LET BALDI JUMPS --
- --[[if checkw(waypoint) ~= nil and checkw(waypoint).Action == Enum.PathWaypointAction.Jump then
- human.Jump = true
- connection = human.Changed:connect(function()
- human.Jump = true
- end)
- human:MoveTo( checkw(waypoint).Position )
- else
- human.Jump = false
- end]]
- --[[hroot.Touched:connect(function(p)
- local bodypartnames = GetPlayersBodyParts(enemytorso)
- if p:IsA'Part' and not p.Name == bodypartnames and phit and phit.Name ~= bodypartnames and phit:IsA'Part' and rootr:Distance(phit.Position) < 5 then
- connection = human.Changed:connect(function()
- human.Jump = true
- end)
- else
- human.Jump = false
- end
- end)]]
- if connection then
- connection:Disconnect()
- end
- else
- for i = 3, #oldpoints do
- human:MoveTo( oldpoints[i].Position )
- end
- end
- elseif enemytorso == nil and canWander then -- if player not detected
- isWandering = 0
- path = nil
- waypoint = nil
- human.MoveToFinished:Wait()
- end
- end
- end))
- Script16.Name = "Movement"
- Script16.Parent = Model0
- table.insert(cors,sandbox(Script16,function()
- -- 21/5/2018 --
- -- SLAPPING INTENSIFIES --
- local npc = script.Parent
- local hum = npc.Humanoid
- local speed = npc.Speed
- local decalp = npc.DecalPart
- while true do
- local waittime = 2/speed.Value
- local oldwalkspeed = hum.WalkSpeed
- decalp.Front.Texture = "http://www.roblox.com/asset/?id=1814500416"
- decalp.Back.Texture = "http://www.roblox.com/asset/?id=1814500416"
- decalp.Slap:Play()
- wait(0.4)
- hum.WalkSpeed = 0
- decalp.Front.Texture = "http://www.roblox.com/asset/?id=1814499405"
- decalp.Back.Texture = "http://www.roblox.com/asset/?id=1814499405"
- wait(waittime)
- hum.WalkSpeed = oldwalkspeed
- end
- end))
- Part17.Name = "DecalPart"
- Part17.Parent = Model0
- Part17.CFrame = CFrame.new(134.399002, 4.20001507, 12.2324219, -5.82076609e-11, 1.10594556e-09, 1, -2.30215846e-12, 0.999999642, -1.68802217e-09, -1, -2.61479727e-12, 5.82076609e-11)
- Part17.Orientation = Vector3.new(0, 90, 0)
- Part17.Position = Vector3.new(134.399002, 4.20001507, 12.2324219)
- Part17.Rotation = Vector3.new(0, 90, 0)
- Part17.Transparency = 1
- Part17.Size = Vector3.new(4.19999886, 8.39999962, 0.113513507)
- Part17.BottomSurface = Enum.SurfaceType.Smooth
- Part17.CanCollide = false
- Part17.TopSurface = Enum.SurfaceType.Smooth
- Decal18.Name = "Front"
- Decal18.Parent = Part17
- Decal18.Texture = "rbxassetid://1814499405"
- Decal19.Name = "Back"
- Decal19.Parent = Part17
- Decal19.Texture = "rbxassetid://1814499405"
- Decal19.Face = Enum.NormalId.Back
- Sound20.Name = "Slap"
- Sound20.Parent = Part17
- Sound20.Pitch = 2
- Sound20.PlaybackSpeed = 2
- Sound20.SoundId = "rbxassetid://511340819"
- Sound20.Volume = 1
- Sound21.Name = "Static"
- Sound21.Parent = Part17
- Sound21.Pitch = 2
- Sound21.PlaybackSpeed = 2
- Sound21.SoundId = "rbxassetid://223103466"
- Sound21.Volume = 0.10000000149012
- Script22.Name = "BaldiWeld"
- Script22.Parent = Model0
- table.insert(cors,sandbox(Script22,function()
- -- 21/5/2018 --
- -- We can already make the decal part anchored and move it along with the rootpart
- function weld(thing)
- local w = Instance.new("Weld")
- w.Part0 = script.Parent.HumanoidRootPart
- w.Part1 = thing
- w.C0 = script.Parent.HumanoidRootPart.CFrame:inverse()
- w.C1 = thing.CFrame:inverse()
- w.Parent = thing
- end
- weld(script.Parent.DecalPart)
- end))
- NumberValue23.Name = "Speed"
- NumberValue23.Parent = Model0
- NumberValue23.Value = 1
- Script24.Name = "Jumpscare"
- Script24.Parent = Model0
- table.insert(cors,sandbox(Script24,function()
- script.Parent.HumanoidRootPart.Touched:Connect(function(hit)
- if hit and hit.Parent then
- local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
- if plr then
- local jumpscare = script.BaldiGui:Clone()
- jumpscare.Parent = plr.PlayerGui
- end
- end
- end)
- end))
- ScreenGui25.Name = "BaldiGui"
- ScreenGui25.Parent = Script24
- ImageLabel26.Name = "le baldi"
- ImageLabel26.Parent = ScreenGui25
- ImageLabel26.Position = UDim2.new(-0.150000006, 0, -0.800000012, 0)
- ImageLabel26.Transparency = 1
- ImageLabel26.Size = UDim2.new(2, 0, 8, 0)
- ImageLabel26.BackgroundColor = BrickColor.new("Institutional white")
- ImageLabel26.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel26.BackgroundTransparency = 1
- ImageLabel26.Image = "rbxassetid://1814499405"
- ImageLabel27.Name = "static bg"
- ImageLabel27.Parent = ScreenGui25
- ImageLabel27.Position = UDim2.new(0, 0, 0, -50)
- ImageLabel27.Transparency = 1
- ImageLabel27.Size = UDim2.new(2, 0, 5, 50)
- ImageLabel27.BackgroundColor = BrickColor.new("Institutional white")
- ImageLabel27.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel27.BackgroundTransparency = 1
- ImageLabel27.ZIndex = 0
- ImageLabel27.Image = "rbxassetid://757589434"
- ImageLabel27.ImageTransparency = 0.25
- LocalScript28.Name = "DIE"
- LocalScript28.Parent = ScreenGui25
- table.insert(cors,sandbox(LocalScript28,function()
- -- updated 5/27/2018 --
- plr = game.Players.LocalPlayer
- if not plr:FindFirstChild('Static') then
- local static = script.Parent.Static:Clone()
- static.Parent = plr
- static:Play()
- game.Debris:AddItem(static, 5) -- wait all the way until player restarts to avoid playing too many times
- end
- game.Players.LocalPlayer.Character.Humanoid.Health = 0
- wait(2)
- script.Parent["black bg"].Visible = true
- script.Parent["fidget spinner frame"].Visible = true
- end))
- Sound29.Name = "Static"
- Sound29.Parent = ScreenGui25
- Sound29.SoundId = "rbxassetid://1784592449"
- Sound29.Volume = 1
- Frame30.Name = "black bg"
- Frame30.Parent = ScreenGui25
- Frame30.Position = UDim2.new(0, 0, 0, -50)
- Frame30.Visible = false
- Frame30.Size = UDim2.new(1, 0, 1, 50)
- Frame30.BackgroundColor = BrickColor.new("Really black")
- Frame30.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame30.ZIndex = 2
- Frame31.Name = "fidget spinner frame"
- Frame31.Parent = ScreenGui25
- Frame31.Position = UDim2.new(0.495000005, 0, 0.495000005, 0)
- Frame31.Visible = false
- Frame31.Size = UDim2.new(0.00999999978, 0, 0.00999999978, 0)
- Frame31.BackgroundColor = BrickColor.new("Institutional white")
- Frame31.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame31.SizeConstraint = Enum.SizeConstraint.RelativeXX
- Frame31.ZIndex = 2
- ImageLabel32.Name = "fidget spinner"
- ImageLabel32.Parent = Frame31
- ImageLabel32.Position = UDim2.new(-7, 0, -5.5, 0)
- ImageLabel32.Transparency = 1
- ImageLabel32.Size = UDim2.new(15, 0, 15, 0)
- ImageLabel32.BackgroundColor = BrickColor.new("Institutional white")
- ImageLabel32.BackgroundColor3 = Color3.new(1, 1, 1)
- ImageLabel32.BackgroundTransparency = 1
- ImageLabel32.SizeConstraint = Enum.SizeConstraint.RelativeXX
- ImageLabel32.ZIndex = 2
- ImageLabel32.Image = "rbxassetid://1341253466"
- LocalScript33.Name = "spin that fidget"
- LocalScript33.Parent = Frame31
- table.insert(cors,sandbox(LocalScript33,function()
- -- 5/27/2018 --
- sp = script.Parent
- run = game:GetService("RunService")
- run.RenderStepped:Connect(function()
- sp.Rotation = sp.Rotation + 1
- end)
- end))
- Humanoid34.Parent = Model0
- Humanoid34.LeftLeg = Part6
- Humanoid34.RightLeg = Part5
- Humanoid34.Torso = Part13
- Humanoid34.WalkSpeed = 100
- Camera35.Name = "ThumbnailCamera"
- Camera35.Parent = Model0
- Camera35.CFrame = CFrame.new(4.59766006, 7.01343536, -8.30550957, -0, -0.0157017708, 0.999876738, -0, 0.999876738, 0.0157017708, -1, 0, -0)
- Camera35.CoordinateFrame = CFrame.new(4.59766006, 7.01343536, -8.30550957, -0, -0.0157017708, 0.999876738, -0, 0.999876738, 0.0157017708, -1, 0, -0)
- Camera35.Focus = CFrame.new(2.59790659, 6.98203182, -8.30550957, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Camera35.focus = CFrame.new(2.59790659, 6.98203182, -8.30550957, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement