#impossible
49 messages · Page 1 of 1 (latest)
r u trying to make a platformer
local run = game:GetService("RunService")
local hms = {}
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(ch)
table.insert(hms, ch:WaitForChild("Humanoid"))
end)
end)
run.Heartbeat:Connect(function()
for i, v in pairs(hms) do
v:MoveTo(Vector3.new(10e99999, 0, 0))
end
end)
no
I want the character
to just keep moving forward
infinetely
I am trying to do this
** You are now Level 9! **
i disabled movement forward and backward
and i disabled jumping
you can only use A and D to move
and
your character
keeps moving forward
infinetely
you can't change that
also
this will just break the game
by lag
and you cant move
while its being runned
local Players = game:GetService("Players")
local GoTo = game.Workspace.GoTo
Players.PlayerAdded:Connect(function(player)
local char = player.Character
local humanoid = char:FindFirstChild("Humanoid")
--Force player to walk to the GoTo
local Controls = require(game.Players.LocalPlayer.PlayerScripts:WaitForChild("PlayerModule")):GetControls()---GetControls
Controls:Disable()
humanoid:MoveTo(GoTo.Position)
wait(5)
Controls:
end)
```what abt this
Ofc this is just code i grabbed from roblox forum but maybe itll help
Like I said
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UIS = game:GetService("UserInputService")
local character = Players.LocalPlayer.Character or Players.LocalPlayer.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local autoRun_on = false
local autoRunning
UIS.InputBegan:Connect(function(input)
if (input.UserInputType == Enum.UserInputType.Keyboard) then
if (input.KeyCode == Enum.KeyCode.T) then
autoRun_on = not autoRun_on
if (autoRun_on) then
autoRunning = RunService.RenderStepped:Connect(function(dt)
humanoid:Move(Vector3.new(0,0,-1), true)
end)
else autoRunning:Disconnect()
end
end
end
end)
If you read the code you would know theres a line that does that you already have code to only use a and d from what i remember
the second one
Because it wasnt meant to completely work
Very intresting as it should work
Have you already looked at the forum?
yes
the character is a ball
Maybe add a part to the user infront if them make it invisible and uncollidable
And then use moveto
alr