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 7 years ago

So I have a script like this:

01while bulletFreeze = false then do
02 
03filepath.bullet.anchored = false //Bullet is a model
04 
05end
06 
07while bulletFreeze = true then do
08 
09filepath.bullet.anchored = true //Bullet is a model
10 
11end

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 — 7y
0
That is pseudo code not my actual one. Point is, I am positive my syntax is correct. ChainMailZombie 0 — 7y

1 answer

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

Hey! Try this

1while bulletFreeze == false then do
2filepath.bullet.anchored = false
3end
4 
5while bulletFreeze == true then do
6filepath.bullet.anchored = true
7end

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