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

Why does it not work? [Answered]

Asked by
Kyokamii 133
9 years ago

I am trying to do so when you are a certain player a local part creates. Here is the script:

local player = game.Players.LocalPlayer

if player.Name == "Zuzur" then
    local part = Instance.new("Part", workspace)
    part.Position = workspace.j.Position
end

It is in the workspace, and Filtering Enabled is on.

0
I really don't understand, but im quite new to local stuff. Kyokamii 133 — 9y
0
What is workspace.j? TickerOfTime 70 — 9y
0
A Part, Why? Kyokamii 133 — 9y

1 answer

Log in to vote
0
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
9 years ago

LocalScripts must be located within the Player. Such as, Player > Backpack, or Player > PlayerGui.

0
Thanks a lot. Kyokamii 133 — 9y
Ad

Answer this question