The gravity and physics is being weird to a part I’m applying velocity too
- its falling very slowly like its on the moon
- and all the physics are slow too
- only 1 player can controll at a time when in multiplayer…
- it takes like 20 seconds for you to be able to move when playing the game
i will give some details that might help.
this is the script that adds a new part when a player joins so they can controll it
this is character control script
Here’s the control script
local cam = game.Workspace.CurrentCamera
local runserv = game:GetService("RunService")
local UIS = game:GetService("UserInputService")
local plr = game.Players.LocalPlayer
local CustomPlayer = game.Workspace:FindFirstChild(plr.Name .. "$$$")
---x,y,z = 0,5,0
Whold = false
Dhold = false
Ahold = false
Shold = false
speed = 5
MaxSpeed = 25
MinSpeed = 1
runserv.RenderStepped:Connect(function()
if Whold == true then
speed = math.clamp(speed + 0.5,MinSpeed,MaxSpeed)
else
speed = math.clamp(speed - 0.25,MinSpeed,MaxSpeed)
end
if Shold == true then
speed = math.clamp(speed - 0.10,MinSpeed,MaxSpeed)
end
if Dhold == true then
CustomPlayer.CFrame = CustomPlayer.CFrame * CFrame.fromEulerAnglesXYZ(0,-0.03,0)
end
if Ahold == true then
CustomPlayer.CFrame = CustomPlayer.CFrame * CFrame.fromEulerAnglesXYZ(0,0.03,0)
end
workspace.CurrentCamera.CameraType = Enum.CameraType.Follow
workspace.CurrentCamera.CameraSubject = CustomPlayer
workspace.CurrentCamera.Focus = CustomPlayer.CFrame
CustomPlayer.AssemblyLinearVelocity = CustomPlayer.CFrame.lookVector * speed
end)
UIS.InputBegan:connect(function(input,gameProcessed)
if input.KeyCode == Enum.KeyCode.W then
Whold = true
elseif input.KeyCode == Enum.KeyCode.D then
Dhold = true
elseif input.KeyCode == Enum.KeyCode.A then
Ahold = true
elseif input.KeyCode == Enum.KeyCode.S then
Shold = true
end
end)
UIS.InputEnded:connect(function(input,gameProcessed)
if input.KeyCode == Enum.KeyCode.W then
Whold = false
elseif input.KeyCode == Enum.KeyCode.D then
Dhold = false
elseif input.KeyCode == Enum.KeyCode.A then
Ahold = false
elseif input.KeyCode == Enum.KeyCode.S then
Shold = false
end
end)
also here is the information for the mesh part that is the player
i hope you can help fix my game I don’t expects all the problems to be fixed but as much help as possible is accepted!
also here is the game if you would like to test it
it might take a bit for you to be able to move but just wait a lil
(1) Tottally Ratical Dood (help) - Roblox