local function whatever (plr, char)
		print('fired')
		print(char.Parent.Name)
		print(char.Name)
		pcall(function() char.G:Destroy() end)
		local hair = game.ReplicatedStorage.SSJ
		local clone = hair:Clone()
		clone.Parent = char
		local weld = Instance.new('Weld')
		weld.Parent = char.Head
		weld.Name = 'WeldHead'
		weld.Part0 = char.Head
		weld.Part1 = char.SSJ.Handle
		weld.C0 = CFrame.new(0, 1, 0.11) * CFrame.Angles(0,math.pi,0)
		local particle = game.ReplicatedStorage.Particle
		local cl = particle:Clone()
		cl.Parent = char.Torso
end

game.ReplicatedStorage.RemoteForSSJ.OnServerEvent:Connect(whatever)

The error happens at the clone.Parent line. It've checked multiple times and and it did but it quickly went NULL.... Can someone explain this and give me a tip about this?

2 comments

0

The script is in ServerScriptStorage.

0

If 'char' is the character then you could just do plr.Character.