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

Why do I keep getting: Error ('=' expected near 'is')? I don't even have the word 'is' in my script.

Asked by 7 years ago
Edited by OldPalHappy 7 years ago
local sides = 6
local radius = 4
for i=1,sides do
local s = math.tan(math.rad(180/sides))*radius
print(s)
side = Instance.new("Part")
side.Material = "DiamondPlate"
side.Parent = game.Players.LocalPlayer.Character.Head
side.Anchored = true
side.Size = Vector3.new(.1,.1,2*s)
side.TopSurface = "Smooth"
side.BottomSurface = "Smooth"
side.BrickColor = BrickColor.Yellow()
side.CFrame = side.Parent.CFrame * CFrame.new(0,2,0) * CFrame.Angles(0,math.rad(360/sides*i),0) * CFrame.new(radius,0,0)
end

why does it keep giving me this error? ('=' expected near 'is')

0
edit: it works fine on studio, but im trying to get it to run on script builder MaximunNit -2 — 7y

1 answer

Log in to vote
1
Answered by
j236 26
7 years ago

First of all, use the code block. No one can understands your thing. Second, why are you trying to run it on the script builder? Script builders has limited access not UNLIMITED.
Third, at the output, where is the error located at? Is it coming from your script or other scripts?

0
I actually agree with you, but I think your supposed to use comments for these kinds of responses mate imaginaryuberlyuber 63 — 7y
Ad

Answer this question