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

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

Asked by 6 years ago

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?

0
You need to use "==", not "=" for the conditions Gey4Jesus69 2705 — 6y
0
That is pseudo code not my actual one. Point is, I am positive my syntax is correct. ChainMailZombie 0 — 6y

1 answer

Log in to vote
0
Answered by
Kblow1 53
6 years ago

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.

Ad

Answer this question