I’m trying to make script that translates local part to server, using remote events. And i got a problem that I don’t know how to translate it.
I already tried to make script but got an error “Unable to assign property Position. Vector3 expected, got nil”
Heres the code
server
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local CreateHitP = ReplicatedStorage:WaitForChild("CreateHitPart")
CreateHitP.OnServerEvent:Connect(function(plr, val)
local Part = Instance.new('Part')
Part.Parent = workspace
Part.Position = val
Part.CanCollide = false
Part.CanTouch = false
Part.CanQuery = false
Part.Anchored = true
Part.Size = Vector3.new(.4,.4,.1)
end)
local
val = Part.Position
I think its very simple to fix but i can’t figure it out.