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

How is this not working?

Asked by
0x72 20
10 years ago

so the position of the bodyposition should be my torso, so it follows me

a=Instance.new("BodyPosition",tab) -- tab is my tablet seee
a.Position = Workspace.0x14.Torso --so the position of the bodyposition is is my torso

--Full skript k
owner = {"Player1"}
--
 local tabs=Instance.new("Part",Workspace)
local BP = Instance.new("BodyPosition",tabs)
BP.position = Workspace["Player1"].Torso
if Workspace["Player1"]== nil then print'no admin :(' end







1 answer

Log in to vote
1
Answered by
RedCombee 585 Moderation Voter
10 years ago

You can't call a child with periods when the name of the child starts with a number.

To better explain this:

a.Position = Workspace.0x14.Torso

That is your error.

And to call the child correctly:

a.Position = Workspace["0x14"].Torso
0
uh, i had that fixed but ima try wat u said 0x72 20 — 10y
0
I tried, but it didn't work. I'll just give you the full script. 0x72 20 — 10y
Ad

Answer this question