I'm using a remote event to start this script to make a box spawn. However when I try and use it nothing happens. Admittedly, I have no idea what I'm doing.
game.ReplicatedStorage.Trigger.OnServerEvent:Connect(function(player, message, char) if message == "Q" then print("2") local rp = game.ReplicatedStorage local Hitbox = rp:WaitForChild('Hitbox') local ClonedRA = Hitbox:Clone() ClonedRA.Parent = char ClonedRA.CFrame = char:WaitForChild('Torso').CFrame local Weld = Instance.new('ManualWeld') Weld.Part0 = ClonedRA Weld.Part1 = char:WaitForChild('Torso') Weld.C0 = ClonedRA.CFrame:inverse() * char:WaitForChild('Torso').CFrame * CFrame.new(0,0,0) Weld.Parent = char:WaitForChild('Torso') end end)