I dont understand anymore, anyone please explain why this wont work ;--;

end)  ```

simple, but for some reason it doesnt print and does not fire the server

Player added doesn’t work on the client. So wait til the character is added then fire.

local character = player.Character or player.CharacterAdded:Wait()

this is placed in local script. so do I add a wait? or move the script to a server script?

Putting it in a server script would be better since you don’t have to fire an event. Use the player added function though.

1 Like

Alright, thanks alot, ill try that

1 Like
local fireservevent = script:WaitForChild("RemoteEvent")
	weld.Part1 = char:WaitForChild("Right Arm")
	weld.Part0 = sword
-- I placed this exact code into the server but it says this error ```Workspace.5thtimegettinghack.LocalScript.Sword.SwordAttatch.Script:5: attempt to index nil with 'CharacterAdded'  - --

Cause local player doesn’t exist on the server. You have to use this

	weld.Part1 = player.character:WaitForChild("Right Arm")
	weld.Part0 = sword
1 Like

Ohhhh, alright thanks, yea that makes sense

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.