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
Try this
Character = Plr.Character game.Players.PlayerAdded:connect(function(Plr) plr.Chatted:connect(function(msg) if Plr.name == "iispear" and msg == "HSoulDrop" then p = game.Lighting.Union:Clone() Weld = Instance.new("Weld", Character.Torso) Weld.Part0 = Character.Torso Weld.Part1 = p Weld.C0 = CFrame.new(0, 5, 5)*CFrame.fromEulerAnglesXYZ(0, 0, 0) end end) end)
Tell me if it works.