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

how would i rename a part after using instance.new to make it?

local part3 = Instance.new ("Part", game.Workspace)
part3.Name = "HellSphere"
part3.Color = Color3.new (61, 0, 0)
part3.CanCollide = false
part3.Transparency = 0.5
part3.Material = "Glass"
part3.Parent = v.Character.Torso

trying to use this code but it doesn't rename the part, any help?

3 comments

1

This is how you rename it. I just tested your code, and it worked, however being as its CanCollide = false, and unanchored, it just fell through the map.

0

just anchor it

0

oh dang i must've been trippin lol

1 answer

✓ Accepted answer

The part fell through the world so it was Destroyed.

local part3 = Instance.new ("Part", game.Workspace)
part3.Name = "HellSphere"
part3.Color = Color3.new (61, 0, 0)
part3.CanCollide = false
part3.Anchored = true -- this will prevent it to fall
part3.Transparency = 0.5
part3.Material = "Glass"
part3.Parent = v.Character.Torso

This should help you fix the script. If you want it attached to the player Check this out:

http://wiki.roblox.com/index.php?title=Weld

Anyway hoped this helped!

Best of luck developer!

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