Custom character respawning to players normal character a few seconds after spawning

hello! so a quick rundown of how I got to this issue

im currently programming a game where a player controls a tornado, so I figured itd be easy to just make the tornado a character and use the roblox control system with it

currently it swaps the character, waits a couple seconds, and then respawns the player, destroys the custom character, and spawns them as their avatar

2 Likes

so whats the problem here young chap

1 Like

could you show us the script? I will help us with fixing the problem.

2 Likes
local tornadoModel = assets:WaitForChild("tornado"):Clone()
tornadoModel.Parent = workspace

tornadoModel.PrimaryPart.CFrame = ranSpawn.CFrame + Vector3.new(0,tornadoModel.PrimaryPart.Size.Y/2,0)
								
tornadoModel.Name = plr.Name
				
plr.Character = tornadoModel

*this is fired once for the selected player

1 Like

as stated in the title, maybe I didnt say this was the bug enough mb

Well i know that but Im saying whats your goal here cause from the video it looks like its functional, is it that the tornado gets deleted once youre switched back to your char?

its not supposed to switch back from the tornado to your character, youre supposed to be left as the tornado

I see I see, does the tornado have a Humanoid?

2023-07-12 22_17_15-tornado game - Roblox Studio

1 Like

Would you think the players ability to respawn is affecting this issue? Could you try turning respawns off to make sure once the char is switched it wont randomly switch back?

how would I go about just “disabling respawns”

Youd have to turn off the setting in Players “CharacterAutoLoads” and manually load the character through another script, maybe the same one if your script that you have right now is in ServerScriptService. You would handle when a character dies as well through there and make sure they respawn through that script too in the case of death/reset.

Is the tornado rigged properly? I believe the tornado is dying right after you set the player’s character.

1 Like

I was using welds not motor 6d’s! thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.