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

Bullets won't anchor if done by a script? (Bullet Freeze)

So I have a script like this:

while bulletFreeze = false then do

filepath.bullet.anchored = false //Bullet is a model

end

while bulletFreeze = true then do

filepath.bullet.anchored = true //Bullet is a model

end

Why on earth is it not working? Each bullet spawns inside the bullet model but won't anchor with a script. I tried manually anchoring the model from studio and for some reason that works. What am I doing wrong?

2 comments

0

You need to use "==", not "=" for the conditions

0

That is pseudo code not my actual one. Point is, I am positive my syntax is correct.

1 answer

Hey! Try this

while bulletFreeze == false then do
filepath.bullet.anchored = false
end

while bulletFreeze == true then do
filepath.bullet.anchored = true
end

The reason yours didnt work is because you used. =. Whenever your using something like "if ababaa = false then" instead you would do "if ababaa == false then". Notice the extra equal sign.

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