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

How to make DooM-like Glory Kills in a Player to an NPC? [closed]

Asked by 4 years ago

The question says it all.

I'm making a game where it will have tons of enemies, it's in First Person and has weapon systems, I want to make a Glory Kill system in the like (Just like in the DooM games).

I suppose it will need this stuff:

*Both (NPC and Player) be animated with an animator from Roblox Studio. (I can do this, don't worry, I know how to animate a character in Roblox)

*Something that blocks the keyboard keys until the animation ends, so the Player cannot move until the end of the Glory Kill.

*The necessary scripts to doing this (I honestly don't know how to insert an Animation to a Player so then he does it) :((

*Some conditions like, "If an enemy's health is below 25%, there is an 85% of probabilities that the enemy will make a Dizzy Animation and will glow in an neon orange "aura", which in that time lapse any Player can do a Glory Kill"

*In the time lapse where a Player Glory-kills an NPC, both cannot receive damage until the animation ends (because a Player may be killed while doing the animation, as well as the NPC).

*The Glory Kill gives health to the Player who did it.

I think that is everything, I know it seems to be very difficult, but I've just started in the Roblox Studio so I want to use its full potential.

Thank you so much :)

0
I can't tell if this a request or not. Please please please don't ask for stuff on here. We help fix code, not write it for you, Cynical_Innovation 595 — 4y
1
^ what he said. You cant just jump into a DooM game with only a few months of scripting, you'll have to learn the basics then work you way up to that kind of level. Its a mistake we all do. Pancaken8 3 — 4y
0
I answered the post, he needs a certain level of lua knowledge to be able to code this. DayLighter_1995 8 — 4y

Closed as Not Constructive by Cynical_Innovation, Vathriel, and imKirda

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

At a certain health, add a selection box and enable the UIS with range, making it play 2 animations, one for the player and one for the player dying, making it play the animation, once the animation finished, the player dies.

if Hum.Health == 15 then
    local SelectArm1 = Instance.new("SelectionBox")
    local SelectArm2 = Instance.new("SelectionBox")
    local SelectLeg1 = Instance.new("SelectionBox")
    local SelectLeg2 = Instance.new("SelectionBox")

    SelectArm1.Parent = Char:FindFirstChild("Left Arm")
    SelectArm2.Parent = Char:FindFirstChild("Right Arm")
    SelectLeg1.Parent = Char:FindFirstChild("Left Leg")
    SelectLeg2.Parent = Char:FindFirstChild("Left Leg")
    -- and the userinputservice code enabling it
end)

To give the player health just get the value of the player who killed and give them health with humanoid

0
You're a starter and you don't know how to insert stuff making doom glory kills advanced to do.. DayLighter_1995 8 — 4y
Ad