Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

INstance new part not working?[STILL NEED HELP

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

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.

2 comments

0

Also change "part" to "Part"

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?

This discussion is preserved as it was. New answers, comments, and votes are closed.