function admin (msg)
Player = script.Parent.Parent
if Player.Name == "iispear" then
if msg == "HSoulDrop" then
pp = game.Lighting.Union:Clone()
Weld = Instance.new("Weld")
Weld.Part0 = pp.Character.Torso
Weld.Part1 = pp
Weld.Parent = pp.Character.Torso
Weld.C0 = CFrame.new(0, 5, 5)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
`
end
end
end
This isn't working i want it when someone chats HSoulDrop a Union in lightning is cloned and put infront of the character . I've tried over and over! whenever i chat "HSoulDrop" in game the script never runs i think it gets messed up during the welding and positioning part how do i get the script to clone a union in lighting when you chat HSoulDrop and position it in front of you ?
(btw You cant,Run this script in test beacuse you cant use chat in test.
Ok this is when i updatated it with Yum's advice
function Admin (msg)
Player = script.Parent.Parent
if Player.Name == "iispear" then
if msg == "HSoulDrop" then
pp = game.Lighting.Union:Clone()
Weld = Instance.new("Weld")
Weld.Part0 = pp.Character.Torso
Weld.Part1 = pp
Weld.Parent = pp.Character.Torso
Weld.C0 = CFrame.new(0, 5, 5)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
end
end
end
script.Parent.Parent.Chatted:connect(Admin)
i called it but still wont work i have a really bad feeling its CFrame or the weld
More advice from Yoshi
function Admin (msg)
Player = script.Parent.Parent
if Player.Name == "iispear" then
if msg == "HSoulDrop" then
pp = game.Lighting.Union:Clone()
Weld = Instance.new("Weld")
Weld.Part0 = pp.Character.Torso
Weld.Part1 = pp
Weld.Parent = pp.Character.Torso
Weld.C0 = CFrame.new(0, 5, 5)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
end
end
end
Player.Chatted:connect(Admin)
still wont work Help! Thanks to all The contributed

8 comments
Yes you can test Message function on Studio.
Thanks! I never knew but i really dont know how to fix it.
Did you ever call the function?
i just saw that how would i call it i dont wanna make a mistake
Check the new script still wont work. Yum
Where did you put the script in the game? Also instead of script.Parent.Parent.Chatted you can replace it with Player.Chatted.
i left the script in workspace union in lighting
Daang. I can help you with this in a few hours, since I'm in school