Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

attempt to perform arithmetic (add) on Vector3 and number?

Asked by 2 years ago

i need help with this error im not sure about what i did wrong

local torso = script.Parent.Torso

script.Parent:WaitForChild("Humanoid").Died:Connect(function()
    local rewards = game.ReplicatedStorage.Rewards:Clone()
    rewards.Parent = game.Workspace
    rewards.Bags.Position = Vector3.new(math.random(torso.Position.X - 2.5,torso.Position.X + 2.5),torso.Position + 5,math.random(torso.Position.Z - 2.5,torso.Position.Z + 2.5))
end)

0
What exactly do you mean when you add 5 to the torso position? KochbananemitGuave 15 — 2y

Answer this question