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

I wanted my force field to dissapear at a amount of something but it wont work??

Asked by
WN0820 11
4 years ago
Edited 4 years ago

I want it if has greater then 10m psy then it goes invisible and if you have less then you see it still heres the script there is no errors but I don't know why it wont do it

local psy = game.ServerScriptService.Leaderstats.PsychicForce.Value

if psy > 10000000 then
    game.Workspace.Force.Transparency = 1
    game.Workspace.Force.CanCollide = true
else
if psy < 10000000 then
    game.Workspace.Force.Transparency = 0.7
    game.Workspace.Force.CanCollide = false
end
end
0
Maybe psy > "1000000"? RebornedSnoop 175 — 4y
0
I dont think so "" would work WN0820 11 — 4y
0
If the player has a PhychicForce value of exactly 10000000 then nothing will happen because the script only knows what the do if it is greater than 10000000 or less than 10000000. Try using a greater than or equal to, or less than or equal to Sulu710 142 — 4y

Answer this question