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)