How to make a game like Difficulty Fling Simulator:
Script:
local SEAT_PART = game.Workspace.Lobby.SeatPart --- finds the seat part in the game and shortens it
for i,booster in pairs(game.Workspace.Boosters:GetChildren()) do --- gets everything in the Boosters Folder
if booster:IsA("Part") then --- Check if its a part
booster.Touched:Connect(function(hit) --- Detects if a part touched it
local hum = hit.Parent:FindFirstChild("Humanoid") --- Finds the humanoid of the player
if hum ~= nil then --- checks if the player is there or not
local velocity = Instance.new("BodyVelocity") --- creates a bodyvelocity
velocity.Parent = hum.Parent.Torso --- its parent is the torso part of the player
velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge) --- so this will fling it far
velocity.Velocity = Vector3.new(0,0,150) --- the speed may vary depending on what direction its going
wait(.1)
velocity:Destroy() --- destroys it
end
end)
end
end
SEAT_PART.Touched:Connect(function(hit)
local hum = hit.Parent:FindFirstChild("Humanoid")
if hum ~= nil then
hum.Sit = true --- makes the player sit
end
end)
0 Comments