local bindable
local lr = game.ReplicatedStorage.GameData.LatestRoom
local function GetCurrentRoom()
return workspace.CurrentRooms:WaitForChild(tostring(lr.Value + 1), 5)
end
local function Convert(room)
local noder = room:WaitForChild("PathfindNodes", 2):Clone()
noder.Parent = room
noder.Name = "Nodes"
local Goober = Instance.new("StringValue", room)
Goober.Name = "gobble ur balls L splash"
Goober.Value = "seriously do it now loser"
warn("Converted "..room.Name.." to support node system")
local A = room:WaitForChild("RoomEntrance", .5):Clone()
A.Parent = room
A.Name = "RoomStart"
local B = room:WaitForChild("RoomExit", .5):Clone()
B.Parent = room
B.Name = "RoomEnd"
end
bindable = workspace.CurrentRooms.ChildAdded:Connect(function()
local room = GetCurrentRoom()
Convert(room)
end)
Convert(GetCurrentRoom())
warn("Executed entity fixer, made by that one crow man who also happens to possess a gun lol")
local killed = false
local Plr = game.Players.LocalPlayer
local ReSt = game.ReplicatedStorage
local val = 80
local events = require(game.ReplicatedStorage.ClientModules.Module_Events)
local cameraShaker = require(game.ReplicatedStorage.CameraShaker)
local camera = workspace.CurrentCamera
local camShake = cameraShaker.new(Enum.RenderPriority.Camera.Value, function(cf)
camera.CFrame = camera.CFrame * cf
end)
camShake:Start()
function GetTime(Distance, Speed)
-- Time = Distance / Speed
local Time = Distance / Speed
return Time
end
local DEF_SPEED = 99999
local function MakeNormal(Light)
spawn(function()
local lightcolor = Light.Color
task.wait(5)
game.TweenService:Create(Light,TweenInfo.new(0.5),{Color = lightcolor}):Play()
end)
end
---configs
local ambruhspeed = 40
local storer = ambruhspeed
local ambushheight = Vector3.new(0,3,0)
local redtweeninfo = TweenInfo.new(0.5)
local redinfo = {Color = Color3.new(0.454902, 0.529412, 1)}
----------
camShake:Shake(cameraShaker.Presets.Earthquake)
for i,v in pairs(game.Workspace.CurrentRooms:GetDescendants()) do
if v:IsA("Light") then
pcall(MakeNormal,v)
game.TweenService:Create(v,redtweeninfo,redinfo):Play()
if v.Parent.Name == "LightFixture" then
pcall(MakeNormal,v.Parent:FindFirstChild("Neon"))
pcall(function()
game.TweenService:Create(v.Parent:FindFirstChild("Neon"),redtweeninfo,redinfo):Play()
end)
end
end
end
local s = game:GetObjects("rbxassetid://12797515632")[1]
s.Parent = workspace
local ambush = s:FindFirstChildWhichIsA("BasePart")
ambush.Silence:Play()
----------------------
--------------
local function canSeeTarget(target,size)
if killed == true then
return
end
local origin = ambush.Position
local direction = (target.HumanoidRootPart.Position - ambush.Position).unit * size
local ray = Ray.new(origin, direction)
local hit, pos = workspace:FindPartOnRay(ray, ambush)
if hit then
if hit:IsDescendantOf(target) then
killed = true
return true
end
else
return false
end
end
-------------------------
--_SHAKER DO NOT MOD IFY
wait(3)
while ambush ~= nil do wait(0.2)
local v = game.Players.LocalPlayer
local parent = script.Parent
if v.Character ~= nil and v.Character:FindFirstChildWhichIsA("Humanoid").MoveDirection ~= Vector3.new(0,0,0) then
if v.Character:GetAttribute("Hiding") or canSeeTarget(v.Character,50) then
ambush.Rush:Stop()
ReSt.GameStats["Player_".. Plr.Name].Total.DeathCause.Value = "Cease"
firesignal(game.ReplicatedStorage.Bricks.DeathHint.OnClientEvent, {"Hmm..","I dont know who you died to...","Dont Move..?"})
v.Character:FindFirstChildWhichIsA("Humanoid"):TakeDamage(100)
end
end
if v.Character ~= nil then
if v.Character:FindFirstChild("HumanoidRootPart") and (ambush.Position - v.Character:FindFirstChild("HumanoidRootPart").Position).magnitude <= val then
camShake:ShakeOnce(15,8.8,0,2,1,6)
end
end
end