Code
game.Players.PlayerAdded:connect(function(p)
p.Chatted:connect(function(msg)
msg = msg:lower()
if (msg == "ssj") then
if (p.Character ~= nil) then
game.Players.LocalPlayer.Character.gokuhair:Destroy()
game.ServerStorage.ssjgoku:Clone().Parent = game.Players.LocalPlayer.Character
end
end
end)
end)
game.Players.LocalPlayer.Chracter.gokuhair:Destroy() Works fine but game.ServerStorage.ssjgoku:Clone().Parent = game.Players.LocalPlayer.Chracter doesn't work?
Am I doing something wrong here? If so tell me what I'm doing wrong.
Item tree https://gyazo.com/f4aae72a66fdadcde486abf160fb32bf

2 comments
local playerLocal = game:GetService("Players").LocalPlayer local character = playerLocal.Character or playerLocal.CharacterAdded:Wait() if not character or character.Parent == nil then character = playerLocal.CharacterAdded:wait() end game.Players.LocalPlayer.Character.gokuhair:Destroy() local clone = game.ServerStorage.ssjgoku:Clone() clone.Parent = character clone:MakeJoints() clone.Archivable
you have to save things well that code is not worth it because that is not well written, you have to save it in a localscript within StarterPack or StarterGui, attentive only lets you run a localscript the StarterPack.