Local Script :
local player = script.Parent.Parent.order.plrName.Text
local order = script.Parent.Parent.order.order.Text
function order(plr)
game.ReplicatedStorage.orderEvents.placeOrder:FireServer(plr, player, order)
end
script.Parent.MouseButton1Click:Connect(order)
Server Script :
local wall = workspace.orderWall.wall
game.ReplicatedStorage.orderEvents.placeOrder.OnServerEvent:Connect(function(plr, player, order)
local frame = script.order:Clone()
frame.plrName.Text = player
frame.order.Text = order
frame.Parent = wall.SurfaceGui.list
end)
Error :
13:22:56.150 - ServerScriptService.Script:5: attempt to index nil with 'Text' 13:22:56.152 - Stack Begin 13:22:56.153 - Script 'ServerScriptService.Script', Line 5 13:22:56.154 - Stack End
