I made this tank model back in 2015(ish) and it worked fairly well before it became buggy, and was replaced with some other system a couple years back.
As I start to overhaul one of my games I decided to revisit the tank, since, while simple, was pretty optimized, but I ran into some issues.
The issue is that the tank, for some reason, would sometimes not regen when using a tried and proven regen system, and when it did work, it would completely glitch out, teleport the tank and the player somewhere random, sometimes even just deleting the tank and the player from the game. Here’s a GIF of that in action: https://gyazo.com/cdd9db40dde2c3554bc5fa28219107ab
At first I thought it was something to do with the tank scripts, and I removed every sound, script, and bodygyro from it, yet it would still do this. I have no idea why either, as there are no other scripts in the game interacting with the tank (100% sure on that).
Only have the Studio+ plugin installed. Everything else is ROBLOX created ones.
And as for the other scripts, almost all of them are just dealing with GUIs/leaderstats. I have disabled any suspect ones, yet the same issue occurred.
Did you search in the explorer for scripts to make sure there weren’t any hiding? A lot of scripts especially harmful ones get hidden really deep in very hard to find places or cloned to every part like below
Thing is, it happens at every place, regardless of scripts being present or not. I have posted a link to the tank in my original post, however. It has original scripts in it.
Does the issue persist when you disable all plugins, restart studio, create an empty base plate to add the tank to and remove all scripts from the game (by running a script similar to what’s below) in that order? And does this only happen when testing in studio, or does it happen to a published place as well?
RemoveAllScripts
Make sure that if you decide to run this, you do it by saving the script and clicking the run script under the model tab so that this script doesn’t just delete itself before deleting all other scripts
local removeChildScripts
removeChildScripts = function(root)
for i,v in pairs(root:GetChildren()) do
if v:IsA("BaseScript") then v:Destroy() return end
if #v:GetChildren() > 0 then
removeChildScripts(v)
end
end
end
removeChildScripts(game)
It could just be falling through the world instantly, try set all the parts CanCollide to true just incase. If that doesnt work, do you have any other CollisionGroups??