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

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

Asked by 6 years ago
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?

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. WizyTheNinja 834 — 6y
0
just anchor it worklok -24 — 6y
0
oh dang i must've been trippin lol SirTottenhamcake 22 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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!

Ad

Answer this question