--//Serivces
local Players = game:GetService("Players")
--//Variables
local LocalPlayer = Players.LocalPlayer
local Balls = workspace:WaitForChild("Balls")
wait(1)
--//Functions
local function OnBoulderAdded(boulder)
print(boulder:GetChildren())
if boulder.Plr.Value == LocalPlayer.Name then
return
end
boulder.CanCollide = false
end
Balls.ChildAdded:Connect(OnBoulderAdded)
for i, boulder in ipairs(Balls:GetChildren()) do
task.spawn(OnBoulderAdded, boulder)
end
the when the player pushes a boulder that isn’t theirs he goes through but still pushing the boulder, any idea how i can make the player be unable to touch the boulder entirely?
well, this is a localscript, so the player being unable to collide with the boulder is only local, therefore, they are still pushing the boulder on the server. Make this serversided instead