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

Blood script? [closed]

Asked by 11 years ago

How do i make a script that when a player gets hurt blood falls?

Closed as Not Constructive by User#2

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
1
Answered by 11 years ago

You might need a few scripts put together for this, but here is one script. (If this doesn't work using free models would be easier XD)

script.Bloodshot.Parent = game.StarterGui

game.Workspace.ChildAdded:connect(function(child)

01P = game.Players:GetPlayerFromCharacter(child)
02if P ~= nil then
03    if P.Character ~= nil then
04        H = P.Character:findFirstChild("Humanoid")
05        if H ~= nil then
06            T = P.Character:findFirstChild("Torso")
07            -- You need a Torso and Humanoid for this to affect on a person.
08            if T ~= nil then
09                P.Character.Health:remove()
10                giveblood = script.BloodShotS:clone()
11                giveblood.Disabled = false
12                giveblood.Parent = P.Character
13                local part = Instance.new("Part")
14                local weld = Instance.new("Weld")
15                weld.Part0 = part
View all 32 lines...

end)

Ad