#Script issue.
18 messages · Page 1 of 1 (latest)
yo
i prefer u to use other function
sec let me send it
getpositionfromcharacter or sum like that
ill send u example rq
oh
getdistance
** You are now Level 1! **
i think
sec
sec my wifi is pretty slow
u there?
game:GetService("RunService").Heartbeat:Connect(function()
for i,player in pairs(game.Players:GetPlayers()) do
if player:DistanceFromCharacter(script.Parent.Position) <= 50 and player.Character then
print(player,"entered the zone")
print("Distance:", player:DistanceFromCharacter(script.Parent.Position))
elseif player:DistanceFromCharacter(script.Parent.Position) > 50 and player.Character then
print(player,"left the zone")
end
end
end)
ik its bad example
but u can improve it
its working?
** You are now Level 2! **