I keep dying in my game

Hi, whenever I play test my game I die immediately. I have checked all of my scripts and I made all of them (no free models) so I don’t think it’s a virus. I don’t have any malicious plugins all of them are well known (moon animator etc). The only thing I have changed recently is a new randomly generated map using the terrain editor.

4 Likes

Thats a weird thing, it must be a script doing this. so maybe share ur scripts so we can have a look?

2 Likes

Do you just die the first time, or every time you spawn in?

Are all your plugins created by the original person, or are they a copy of the original that might have malicious code added into it? Some nasty free models or plugins will insert scripts into some folders or services in your explorer window. When you play test try using the Explorer Search tool at the top and looking for the word ‘script’, or try opening up everything in your explorer window that has a triangle next to it showing hidden items inside it. Keep going until you’ve gone through every item there.

Something that will kill you immediately is if the head weld is broken in your character. Are you trying to do any improperly executed (sorry, bad pun) teleporting or movement of the avatar then it may be breaking that weld and killing you?

2 Likes

I die every time I spawn in and I don’t think I’m doing any teleporting

1 Like

This is all that remains when the player dies, does it look normal?
image

1 Like

The “FloorKill” Script is almost certainly not normal. Definitely look through that one.

3 Likes

I made that script, it gradually kills the player when touching “CrackedLava”

1 Like

In studio, press Ctrl + Shift + F (Global search) and enter the keywords “:BreakJoints” and look from there.

Edit: As well as @Dasher89798’s suggestion, as it appears all the parts in your character are immediately deleted, or otherwise destroyed due to modification.

2 Likes

Ah, fair enough.
Maybe look through any Scripts that refer to the player’s Character. If there are no Parts in the Character model, it may be a good idea to look for something that could be removing them.

Perhaps that killable object is on your spawn or maybe you coded it so that any part you touch kills?

1 Like

image

1 Like

Use a colon instead of a period

1 Like

still no results found unfortunately

1 Like

Try looking for phrases like “Character:GetChildren()” or similar.

If searching for it doesnt work you’ll likely have to get hands-on help from someone you trust who has the knowledge to hunt it down.

1 Like

Can you show us the script which handles the killpart? Also try searching more keywords like. Health or LoadCharacter

1 Like

The “FloorKill” script you mean?


Humanoid:GetPropertyChangedSignal("FloorMaterial"):Connect(function()
	
	if Humanoid.FloorMaterial == Enum.Material.CrackedLava then
		
		repeat 
			
			Humanoid.Health -= 1

			task.wait(0.1)
			
		until Humanoid.FloorMaterial ~= Enum.Material.CrackedLava
		
	end
	
end)```

Just thought about this but do a global search for “CharacterAdded” and see if it brings up anything.

1 Like

Have you checked your FallenPartsDestroyHeight property on workspace to make sure your player isn’t spawning in below the height?

7 Likes

that is the reason!!! I generated the map to deep and to low down! Thanks for the help!

3 Likes

Oh my I didn’t even think of this; good thought process and a great catch.

Salutations.