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

Part was anchored, made a script and it still anchored? (Easy)

Asked by 4 years ago

Ok if you have seen my recent questions you have perhaps known that I suck at scripting so I went to watch Alvin Blox for scripting tutorial. I was on episode 4 and in episode 3 he explained how to make a dice rollt hingy. So it is anchored in the sky and when you join it supposed to fall. But i wanted to make it different with the tiniest changes possible and I messed up already :/

``local dices = game.Workspace.Dices

game.Workspace.FindFirstChild.Dice1.Anchored = false 

wait (3)

game.Workspace.FindFirstChild.Dice2.Anchored = false

wait (3)

dices.BrickColor = BrickColor.new ("Really red")

What have I done wrong? (Don't blame me that I'm noob at scripting.) Please help thanks!

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

Fixed script

local dices = game.Workspace.Dices

game.Workspace.Dices:FindFirstChild("Dice1").Anchored = false  -- don't use . for FindFirstChild, use : And use ("")
wait(3) -- no space

game.Workspace.Dices:FindFirstChild("Dice2").Anchored = false -- . To :

wait(3) -- no space

dices.BrickColor = BrickColor.new("Really red") -- no space

Hope that helped! Its okay to made mistake in scripting Pro tip: open output to see your scripting error

0
Thanks! TheKingOfDaMemes 24 — 4y
Ad

Answer this question