Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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

1 comment

0

Thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.