So I was messing about in Voidacity's Script Builder, trying to make a script
Player = game.Players.tantec
Char = Player.Character
parts = {}
parts2 = {}
coroutine.resume(coroutine.create(function()
for i = 1,math.huge do
part = Instance.new("Part", Char)
part.Size = Vector3.new(1.2,1.2,1.2)
part.Material = "Neon"
part.Anchored = true
part.CanCollide = false
part.TopSurface = "Smooth"
part.BottomSurface = "Smooth"
part.Color = Color3.new(1,1,1)
part.CFrame = Char["Right Arm"].CFrame * CFrame.new(0,-1,0) * CFrame.Angles(math.rad(math.random(-180,180)), math.rad(math.random(-180,180)), math.rad(math.random(-180,180)))
parts[i] = part
coroutine.resume(coroutine.create(function()
for a = 1,5 do
parts[i].Transparency = parts[i].Transparency + 0.2
wait()
end
parts[i]:Destroy()
end))
wait()
end
end))
coroutine.resume(coroutine.create(function()
for i = 1,math.huge do
part = Instance.new("Part", Char)
part.Size = Vector3.new(1.2,1.2,1.2)
part.Material = "Neon"
part.Anchored = true
part.CanCollide = false
part.TopSurface = "Smooth"
part.BottomSurface = "Smooth"
part.Color = Color3.new(1,1,1)
part.CFrame = Char["Left Arm"].CFrame * CFrame.new(0,-1,0) * CFrame.Angles(math.rad(math.random(-180,180)), math.rad(math.random(-180,180)), math.rad(math.random(-180,180)))
parts2[i] = part
coroutine.resume(coroutine.create(function()
for a = 1,5 do
parts2[i].Transparency = parts2[i].Transparency + 0.2
wait()
end
parts2[i]:Destroy()
end))
wait()
end
end))
It says 'Line 8, Character is not a valid member of Player', I was wondering why it was saying this, because I did have a character?

4 comments
Your script will throw an error if you don't join the game, you might want to fix it
void script builder is dying. but good luck
use local variables & dont use 2nd parent of instance.new
Don't use the second parameter of instance.new to parent things, as green271 said. This is because it's laggier than using the .Parent method.