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

An Error trying to spawn a Part with FilteringEnabled?

Asked by 8 years ago

Server Script

local event = Instance.new("RemoteEvent")
event.Parent = game.Workspace.Remotes
event.Name = "PartInvoke"

event.OnServerEvent:connect(function(player)
    p.Parent = game.Workspace
    game.Workspace.Lol.Transparency = 0.5
end)

LocalScript


local p = Instance.new("Part") p.Name = "Lol" game.Workspace.Remotes.PartInvoke:FireServer(p)

Error: Workspace.RemoteServer:6: attempt to index global 'p' (a nil value)

0
You should be able to debug this yourself. The error tells you p doesn't exist for some reason. Look at lines 5 and 6. Perci1 4988 — 8y
0
I still don't get it on how to debug it by myself.... iDarkGames 483 — 8y

Answer this question