wait(1)

chr = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:wait()
float = Instance.new("Part",chr)
float.Anchored = true
float.CanCollide = false
float.Transparency = 1
float.Position = chr.Torso.Position + Vector3.new(0,10,0)
model = Instance.new("Model")
model.Parent = chr
circle = Instance.new("Part",model)
circle.Anchored = true
circle.CanCollide = false
circle.BrickColor = BrickColor.new(0,0,0)
circle.FormFactor = "Custom"
circle.Size = Vector3.new(.2,5,.2)
circle.Transparency = 1
circle.Rotation = Vector3.new(-90,0,0)
circleB = Instance.new("Part")
circleB.FormFactor = "Custom"
circleB.Size = Vector3.new(0.2, 5, 5)
circleB.Anchored = true
circleB.CanCollide = false
circleB.BrickColor = BrickColor.new(0,0,0)
circleB.Transparency = 0
circleB.Shape = "Cylinder"


model.PrimaryPart = model.Part

for i = 1,180 do
	game:GetService('RunService').RenderStepped:wait()
	float.Position = chr.Torso.Position + Vector3.new(0,10,0)
	model:SetPrimaryPartCFrame(float.CFrame)
	clone = circle:Clone()
	clone.Parent = model
	clone.Transparency = 0
	clone.Position = float.Position
	clone.Rotation = Vector3.new(0,0,i)
	clone.Name = ("A"..i)
end
wait()

model.PrimaryPart = model.A1
float.CFrame = model.A1.CFrame
model:Destroy()
circleB.Parent = chr
circleB.CFrame = float.CFrame

for i = 0,3,.5 do
	game:GetService('RunService').RenderStepped:wait()
	circleB.Transparency = i
end



n=0
x = 0

while game:GetService('RunService').RenderStepped:wait() do
	n = n + 1
	x = x + 1
	float.Position = chr.Torso.Position + Vector3.new(0,10,0)
	if n == 360 then
		n = 0
	elseif x == 360 then
		x = 0
	end
	float.Rotation = Vector3.new(n,x,0)
	circleB.CFrame = float.CFrame
end

There are no errors, I'm trying to make my other circle script less laggy so I replaced my 180 parts with a mesh.

https://scriptinghelpers.org/questions/22827/why-is-this-so-laggy

2 comments

0

Are you sure the script isn't disabled? When I copy/paste that script and insert it into the startergui, it runs just fine for me.

0

@EchoReaper https://gyazo.com/f4fa31e69d2137998bc1e2d18ae7c43e it just disappears after that and I want it to spin like the other question