Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why is this so laggy?

Asked by 8 years ago

I don't mean it lags my computer but it does this https://gyazo.com/c4d831a16e111a7a8e1aebe76ce60749

But on me it does this https://gyazo.com/30780e867e730a36f5c2a1e3dde04cab

I want to make it look like that for other people and not just me.

chr = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:wait()
float = Instance.new("Part",chr)
float.Anchored = true
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)
outline = Instance.new("SelectionBox",circle)
outline.Adornee = circle
outline.Color3 = Color3.new(1,1,1)
outline.LineThickness = 0.001

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 = .7
    clone.Position = float.Position
    clone.Rotation = Vector3.new(0,0,i)
    clone.Name = ("A"..i)
end

model.Parent = chr
model.PrimaryPart = model.A1

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,x)
    model:SetPrimaryPartCFrame(float.CFrame)
end

I don't know how to make it less laggy for other people.

0
There's no way to fix that besides not use so many parts. On any computer that will lag quite a bit. Tkdriverx 514 — 8y
0
aww ;'( Senor_Chung 210 — 8y
0
Just use a cylinder with neon as it's material? YellowoTide 1992 — 8y

Answer this question