repeat task.wait() until game:IsLoaded() and game:service'Players'.LocalPlayer
local plr = game:service'Players'.LocalPlayer or game:service'Players':GetPropertyChangedSignal("LocalPlayer"):Wait()
local char = plr.Character or plr.CharacterAdded:Wait()
local hrp = char.HumanoidRootPart or char:WaitForChild("HumanoidRootPart")
for i, v in next, game:service'Workspace'.HouseInteriors:GetDescendants() do
if v.Name:match("Door") and v:IsA("Part") then
hrp.CFrame = CFrame.new(v.Position); wait(0.5)
-- sometimes it works sometimes it dont. just exit by yourself if it doesnt work
for i = 1, 20 do task.wait()
keypress(0x45)
end
end
end
repeat task.wait() until game:service'Workspace'.Interiors:findFirstChildWhichIsA("Model"); wait()
for i, v in next, game:service'Workspace'.Interiors:findFirstChildWhichIsA("Model"):GetDescendants() do
if v:IsA("Part") and v.Name:find("TouchToEnter") and (--[[v.Parent.Parent.Name == "Neighborhood/MainDoor" or]] v.Parent.Parent.Name == "MainDoor") then
hrp.CFrame = CFrame.new(v.Position)
end
end
repeat task.wait() until game:service'Workspace'.Interiors:findFirstChildWhichIsA("Model"):WaitForChild("Neighborhood/MainDoor")
for i, v in pairs(game:service'Workspace':GetDescendants()) do
if v.Name == "Collider" then
task.wait(0.5); firetouchinterest(v, hrp, 0)
end
end