Weird positioning error

I’m trying to clone in a model from replicated storage to workspace

When I reference the model’s position, I pull
image
even though position is clearly a property of the model.


and ideas as to how to fix this?

I’ve tried simple property changing, which has no reason not to work, but I get the error anyway.

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

very, very, very, simple.

game.ReplicatedStorage.Abilities.Lightning.Hell.OnServerEvent:Connect(function(Player)
	Player.Character.HumanoidRootPart.Anchored = true
	local clone = game.ReplicatedStorage.Lightning:Clone()
	clone.Parent = workspace
	clone.Position = Player.Character.Head.Position + Vector3.new(0, 28, 0) -- Right here ;)
	for i, v in pairs(clone.Cloud:GetChildren()) do
		v.Transparency = 0
	end
	wait(2)
	for ii, vv in pairs(clone.Cloud:GetChildren()) do
		vv.ParticleEmitter.Enabled = true
	end
	wait(3)
	clone.Cloud["Thunder Rumble"]:Play()
	local tween = game:GetService("TweenService"):Create(game.Lighting, TweenInfo.new(3, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false, 0), {Brightness = 0})
	wait(1)
	tween:Play()
	
end)
1 Like

That Position property you see in the explorer is an illusion, and when getting properties you should always use the official documentation. To move a model to a position you can use the MoveTo() method of the model or use the PrimaryPart property.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.