Run it
Copy the script and paste it into your executor.
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
-- Define waypoints for the survivor to move to (adjust these positions accordingly)
local waypoints = {
.(, , ),
.(, , ),
.(, , ),
}
currentWaypointIndex =
()
currentWaypointIndex <= #waypoints
humanoidRootPart.CFrame = .(waypoints[currentWaypointIndex])
()
currentWaypointIndex +=
currentWaypointIndex =
()
()
itemToInteract =
_, item (:())
item:() item:()
distance = (humanoidRootPart.Position - item.PrimaryPart.Position).Magnitude
distance <
itemToInteract = item
itemToInteract
remoteEvent = itemToInteract:()
remoteEvent
remoteEvent:()
()
()
.(moveToNextWaypoint)()
.(interactWithItems)()
Script