Hi guys, Im tryna make a boulder game (climb up a hill and then you turn into a ball) but when you turn into a boulder, Only YOU see yourself as a ball, and the others see you frozen touching the green part, and I want to fix this. I might think i need to pass the "create ball" part to a server script, but i dont know how to connect them, i dont wanna use the remoteEvent or the RemoteFunction in fear of oversaturating the servers. Did i explain it correctly? Pls help
#Why can I only see myself as a ball?
1 messages · Page 1 of 1 (latest)
you probably turned the player into a ball on the client instead of the server; this causes a desync where the server thinks one thing is happening and your client thinks a completely different thing is happening. the solution is generally remotes. there's other methods like attributes but all the same in the end. there is no 0bandwidth method, sorry
oh ok.
** You are now Level 3! **
thx
I will see if that works
though for a touch button you should be able to connect .touched on the server directly, be sure to double check stuff like that 👍
oh, I didn't thought that! super thx
There's a bug in my code in the part where a local function calculates the force for my VectorForce for the boulder (The ball is inside the character) but the IF statement probably doesnt work, making the func not do anything
```lua
local function calculateMovementForce()
if not isBall or not currentBall then return Vector3.new(0, 0, 0) end
local force = Vector3.new(0, 0, 0)
local lookDir = Vector3.new(camera.CFrame.LookVector.X, 0, camera.CFrame.LookVector.Z).Unit
local rightDir = Vector3.new(camera.CFrame.RightVector.X, 0, camera.CFrame.RightVector.Z).Unit
if keysPressed.W then force = force + lookDir * 50000 end
if keysPressed.S then force = force - lookDir * 50000 end
if keysPressed.A then force = force - rightDir * 50000 end
if keysPressed.D then force = force + rightDir * 50000 end
return force
end```
here are the values used: