get hit by a car simulator
15.8k Views
243 Executions

Funny script

get hit by a car simulator
107m
107mFirst script
2 years ago
Please login to perform these actions:

Funny script is a get hit by a car simulator script for Roblox, uploaded to ScriptBlox on Jul 5, 2024.

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

AFK farming/auto wallking usw if the player ist flung reset or let the pathfinding walk back to it. if your get error in your console dont worry!

View Raw
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local Workspace = game:GetService("Workspace")

local localPlayer = Players.LocalPlayer
local path = nil

local function createInvisiblePath()
    path = Instance.new("Part")
    path.Size = Vector3.new(50, 1, 10)
    path.Anchored = true
    path.CanCollide = true
    path.Transparency = 1
    path.Position = Vector3.new(0, 2, 0)
    path.Name = "InvisiblePath"
    path.Parent = workspace

    local resetScript = Instance.new("Script")
    resetScript.Parent = path

    path.Touched:Connect(function(hit)
        local character = localPlayer.Character
        if character and hit:IsDescendantOf(character) then
            resetScript.Timeout = 0
        end
    end)

    return path
end

local function teleportPlayerToPath()
    local character = localPlayer.Character or localPlayer.CharacterAdded:Wait()
    local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
    if path then
        humanoidRootPart.CFrame = path.CFrame + Vector3.new(0, 3, 0)
    end
end

local function walkForwardAndBackwardOnPath()
    local character = localPlayer.Character or localPlayer.CharacterAdded:Wait()


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More get hit by a car simulator scripts

See all