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

I DID IT?

Asked by 10 years ago

Okay I am trying to make blood come out of the player when It dies and My instance.new isn't working correctly. For one, It doesn't recognize what FormFactor is. Nor does it Size. Here is what it says for Formfactor: 15:50:29.370 - Workspace.Player.LocalScript:7: attempt to call field 'FormFactor' (a userdata value) And this is what it says for size: 15:53:08.846 - Workspace.Player.LocalScript:7: bad argument #3 to 'Size' (Vector3 expected, got number) I put vector 3 in and then the number but that didn't work. I also tried leaving out both of these, there was no error but there was also no brick! I need help! Also here is the script I have so far:

s = script.Parent

s.Humanoid.Died:connect (function ()
wait (0)
P = Instance.new("Part")
P.BrickColor = BrickColor.new("Bright Red")
P.FormFactor("Plate")
P.Size = 1,0.4,1
end)

I already have the script that inserts the localscript into the player. Thank you!

1 answer

Log in to vote
0
Answered by 10 years ago

I think you should make the blood's parent game.Workspace.

Ad

Answer this question