I want all this code to be looped inside of this zone i made using zonesplus, but even though I have a renderstepped loop around the whole thing, it seems to only run once. Even if I put a loop inside the "zone.localPlayerEntered" the "zoned" print will show that it is running through the whole thing, but the lerp and the lookAt isnt actively working.
#ZonesPlus is breaking lerps?
1 messages · Page 1 of 1 (latest)
This script is managing mutliple models so just ignore those :-)
I cant send the script wth
https://pastebin.com/ upload it
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
nvm I dont need to copy the code
oki, yeah i tried pasting it but it said I didnt share a server with the recipeient or sum so idk what that was abt
this code works as it should you just have a logic issue here
what is it? The code is outputting what was in that video
RunService.RenderStepped:Connect(function()
game.Players.PlayerAdded:Connect(function(player)
print(player) -- will only print once
end)
end)
for you you are waiting for the player to enter and then you print it once also
if you want to create a loop after he entered you would have todo this:
game.Players.PlayerAdded:Connect(function(player)
RunService.RenderStepped:Connect(function()
print(player) -- will print infinite times
end)
end)
would i have to stop the original renderstepped loop that goes around everything?
no but that loop is kinda not necessary
or idk if it is for you but I dont think it is
it just takes performance away
well, it runs the other models that follow your character model. Would it be more beneficial to set up zones near each model and only have loops run when they are near?
yes if you are able to make loops only activate wehn players are near something you should do that
oki yeah
you can store loops in variables and :Disconnect them
--Example:
local newLoop = RunService.RenderStepped:Connect(function()
print("wow")
end)
newLoop:Disconnect()
so, would I put "loopname:Disconnect()" in each zones "localPlayerExited"?
I would set it up like this:
player.ZoneEntered:Connect(function()
local newLoop = RunService.RenderStepped:Connect(function()
print("wow")
end)
player.ZoneLeft:Connect(function()
newLoop:Disconnect()
end)
end)
is ZoneEntered and ZoneLeft how you use zonesplus?
no you gotta adjust that for your code
ah ok
Developer Forum | Roblox
Disclaimer: Updates are planned to modernize ZonePlus for 2026 - you can listen out for these at our community server - please note inbetween I won’t be monitoring this thread or codebase 💾 Source Code | 📖 Documentation | 🌊 Playground ZonePlus utilises the new Spatial Query API and Whitelists to effectively determine players, p...
idk if your using v3.2.0 but this is the documentation
so it works, connect and disconnecting the zones. As well as looping them. But the problem is the lerp that the head of the cupcake uses, and the PivotTo that the eyes use are both still frozen like in my video
ive never used lerp before tbf
new script that still isnt working :/
I rlly cant help you with that I dont work with CFrames or Lerp too much