I’m welding a Part to the Player’s Torso to make some sort of Money collecting aura (Similar to the Range upgrade in Grass Cutting Incremental) this basically makes it so I can collect money from further away
Collecting the money and all of that works, but when I move around in shiftlock or in first person the character moves slowly?
Its in R6, the “Aura” has collisions turned off and its set to massless so I dont know whats causing this
I didnt make a video cause I dont know how to but as you can see, the Gray Part around the character is the aura I was referring too and you can see that my character wasn’t alligned to the shiftlock direction soo someone please help
What I mean by the character moves slowly I mean like its not Instantly rotating to where im facing, it takes like a good second before actually rotating and it doesnt move instantly it kind of tweens my orientation I dont rlly know how to explain it
I don’t think so. Well, it depends on how many money things there are. It shouldn’t be too laggy hopefully as using magnitude isn’t like putting parts into workspace. After all it is just some calculations in a script.
Maybe try this?
local Char = game.Players.LocalPlayer.Character
local coin = workspace.coin
while true do
game:GetService("RunService").HeartBeat:Wait()
local distance = (coin.Position - Char.HumanoidRootPart.Position).Magnitude
if distance < 1 then
game.ReplicatedStorage.CoinCollect:FireServer(coinamount)
end
end
Well since this is scripting support you should probably show us your script.
I’m just guessing, but are you using Touched events to trigger the coin collection? Is the script lagging because you are registering the hundreds of Touched events that will occur when your player parts keep touching the aura?
Solved, this was happening because I was setting all the body parts to Massless for the anticheat, and since the sort of aura was also massless i guess it was messing some stuff up, but I fixed it by giving mass to the body parts.