Hello, so I was trying to script a new aura for an update but I encountered an issue.
robloxapp-20210521-1816546.wmv (880.4 KB)
The aura is being delayed.
Here’s the code. How do I fix this?
while true do wait()
if script.Parent.Parent ~= game.ReplicatedStorage then
script.Parent.Position = script.Parent.Parent.Torso.Position
end
end
I’ll fix the aura Y positioning later.
It could be due to lag? Either that or you may need to use a weld to accomplish this
You can try this, if it doesn’t work then you’ll have to weld it in some way:
local RunService = game:GetService("RunService")
while true do
if script.Parent.Parent ~= game.ReplicatedStorage then
script.Parent.Position = script.Parent.Parent.Torso.Position
end
RunService.Heartbeat:Wait()
end
You could try Welding it but i Don’t know if you have something else in mind
That didn’t seem to work. I have a good computer.