Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why does it appear really far away when it should appear super close?

local DefinitelyPlane = workspace:FindFirstChild("1")
local PlaneName = 1
local Plane = workspace:FindFirstChild(PlaneName)
local PositionXX = 103.4
local PlayerQuantity = 0
local PositionBr = PositionXX, 5.8, -919.8

game.Players.PlayerAdded:Connect(function(Player)
	PlaneName = PlaneName + 1
    PlayerQuantity = PlayerQuantity + 1
    PositionXX = PositionXX - 15
    local RPlane = Plane:Clone() 
    RPlane.Parent = workspace --see, like this
    RPlane.Name = PlaneName
    RPlane:MoveTo(Vector3.new(PositionBr))
end)

1 comment

0

yes, i used a part of a script from this page to maken the script work

1 answer

local a = 1,2,3

a is not equal to all three numbers, it is equal to 1.

local a = Vector3.new(1,2,3)

Now, a is equal to a Vector3 of all the numbers.

local PositionBr = PositionXX, 5.8, -919.8

As previously mentioned, PositionBr is now only equal to PositionXX

Due to the incorrect Vector3 construction, it defaults to 0,0,0

Relevant devforum post.

1 comment

0

ik i already did it thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.