I know how to do this, But it just isn't working. Everything else in this code works. I want to position the new part to the person that died's torso.
Any help would be appreciated!
Here is the code:
--Created by KordGamer
game:GetService('Players').PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
character:WaitForChild("Humanoid").Died:connect(function(Died)
for i =1,script.GoldCount.Value do
local xp = Instance.new("Part")
xp.Parent = game.Workspace
xp.Position = Vector3.new(character.Torso.Position + Vector3.new(math.random(-3,3),math.random(-3,3),math.random(-3,3)))
xp.Shape = 0
xp.formFactor = "Symmetric"
xp.Name = "XP"
xp.BrickColor = BrickColor.new(24)
xp.Reflectance = 0.5
xp.Size = Vector3.new(1,1,1)
local clone = script.Increase:Clone()
clone.Disabled = false
clone.Parent = xp
end
end)
end)
end)
--Created by KordGamer
As I said, Everything else works apart from the position part. It just positions it to the center of the BasePlate, AKA Workspace.

2 comments
Thanks for the answer! It works, and there are no glitches. Thanks again!
Lol no problem. Glad to help! :)