Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How Do I Make A 'Death From Certain Height' Script?

I've tried using altitude, Enum.HumanoidStateType, e.t.c. I've given up. I don't know how to make a script that damages a player from a certain height!

1 answer

Well, just check when the BodyHeightScale changed, and if it's higher than you want, it kills. Something like this:

-- this have to be on a serverscript tho, so do it in the onserverevent where you change height
player.Character.Humanoid.BodyHeightScale.Changed:Connect(function()
	if player.Character.Humanoid.BodyHeightScale.Value >= 2 then -- determine a value here
		player.Character.Humanoid.Health = 0
	end
end)

Something like this, hope i helped.

3 comments

0

im going to try it

0

hmm... probably would have worked... if i was doing a player height cap. i meant altitude by height not player height

0

Can you explain me what do you use for making player bigger?

This discussion is preserved as it was. New answers, comments, and votes are closed.