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

INstance new part not working?[STILL NEED HELP

Asked by 9 years ago

Hello I am now wroking on a blood script and this is waht I have so far but nothing is happening when I die. I have the script so that the local script is inserted into the player so all I need is help with this script. Here is waht I have so far

s = script.Parent

s.Humanoid.Died:connect (function ()
wait (0)
Instance.new("part")
color("Bright Red")
Formfactor("Plate")
Transperency = 0
Size = 1,0.4,1
end)

1 answer

Log in to vote
0
Answered by 9 years ago
s = script.Parent

s.Humanoid.Died:connect (function ()
wait (0)
P = Instance.new("part")
P.Color("Bright Red")
P.Formfactor("Plate")
P.Transperency = 0
P.Size = 1,0.4,1
end)

You need to make a name for the part you can just make a entirely new one and not have a new name.

0
Also change "part" to "Part" ScriptingCon 52 — 9y
0
This doesn't work. This is the error in the Output: 13:02:18.634 - Workspace.Player.LocalScript:6: attempt to call field 'Color' (a userdata value) I tried changeing it to BrickColor but I got the same answer. Any other soulutions? minikitkat 687 — 9y
Ad

Answer this question