Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Adding A New Humanoid To Character Doesn't Work?

Asked by 5 years ago

So I'm making this Brick Battle type game, and i've used the new Superball model Roblox made. Although there's a glitch with the tool that removes the characters Humanoid if they take damage, then gets hit with the Superball. So to fix this I made a script that inserts a new Humanoid into the character if there isn't one in it already. It works fine, but when the new Humanoid gets added, the player can't jump or reset. Resetting just kills you and doesn't respawn you.

I just want to know if I can fix this with the script I've made, or if I'll have to use the old version of the Superball (Or re-write parts of the new one.) Here's the script for putting in a new Humanoid:

while true do
    wait(.7)
    if script.Parent:FindFirstChild("Humanoid") == nil then
        Instance.new("Humanoid",script.Parent)
    end
end

0
dont parent things with an instance Donut792 216 — 5y
0
It didn't make a difference either way. NoahsRebels 99 — 5y

Answer this question