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

Everything Printing but the script is not accomplishing its main function?

Not cloning :/

local DefinitelyPlane = workspace:FindFirstChild("1")
local PlaneName = 1
local Plane = workspace:FindFirstChild(PlaneName)
local PositionXX = 103.4
local PlayerQuantity = 0

game.Players.PlayerAdded:Connect(function(Player)
	print("c")
	PlayerQuantity = PlayerQuantity + 1
	print("2")
	DefinitelyPlane:Clone()
	print("h")
	
	end)

2 comments

1

You never parent the clone

0

how do i do that?

1 answer

✓ Accepted answer

Parent the clone to workspace

local DefinitelyPlane = workspace:FindFirstChild("1")
local PlaneName = 1
local Plane = workspace:FindFirstChild(PlaneName)
local PositionXX = 103.4
local PlayerQuantity = 0

game.Players.PlayerAdded:Connect(function(Player)
    print("c")
    PlayerQuantity = PlayerQuantity + 1
    print("2")
    DefinitelyPlane:Clone().Parent = workspace --see, like this
    print("h")
end)

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