So I made it when you click the tool, it will instance a part. It’s not appearing. But it’s printing ‘got here’.
Server
local event = script.Parent:WaitForChild('Event')
event.OnServerEvent:Connect(function(player, char)
print('got here')
local root = char:WaitForChild('Torso')
local part = Instance.new('Part')
part.Parent = workspace
part.Name = 'Brick'
part.Position = script.Parent:WaitForChild('Handle').Position
end)
Cleint
script.Parent.Activated:Connect(function()
print(1)
script.Parent:WaitForChild('Event'):FireServer(game:GetService('Players').LocalPlayer.Character)
end)