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

How to use instance.new to put something inside my character?

Asked by
R_G0d -2
5 years ago

I made a text button and I put a script in it, I want it so that when I click the button, it puts a selection box in the local player. I tried using Instance.new("SelectionBox",game.Players.LocalPlayer.Character["UpperTorso"] but it didn't work, can somebody help me?

0
Thanks I will try it R_G0d -2 — 5y

2 answers

Log in to vote
0
Answered by 5 years ago
local kepex =  Instance.new("SelectionBox",game.Players.LocalPlayer.Character.UpperTorso)
kepex.Adornee = game.Players.LocalPlayer.Character.UpperTorso
0
Thanks I will try it R_G0d -2 — 5y
0
This worked! Thanks for the help :D R_G0d -2 — 5y
0
where is the adornee come from Lolamtic 63 — 5y
Ad
Log in to vote
0
Answered by 5 years ago

local slb = Instance.new("SelectionBox") slb.Parent = game.Players.LocalPlayer.Character.UpperTorso

1
Thanks I will try it R_G0d -2 — 5y
0
mine didnt work!? :( Lolamtic 63 — 5y
0
No sorry! Thanks for the help though! R_G0d -2 — 5y

Answer this question