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

I tried making a fireball shoot at 100 to 100k and then from 1mil to 100mil Idk what I did wrong?

This is the script I made for it ``local Punch = game.ServerScriptService.Leaderstats.PunchPower local plr = script.Parent.Parent

if plr.Punch > 100 and 100000 then local FireBallSize = Vector3.new(2.19,2.19,2.19) game.ServerScriptService.FireBallServer.FireBall.Size = FireBallSize end

if plr.Punch > 1000000 and 100000000 then local FireBallSize = Vector3.new(10.19,10.19,10.19) game.ServerScriptService.FireBallServer.FireBall.Size = FireBallSize end``

I am not well at scripting either reason i got -2 is because I made questions can someone help me create something lol

2 comments

0

code block plz

0

script.Parent.Parent.game.ServerScriptService.Leaderstats.PunchPower doesnt make sense

1 answer

✓ Accepted answer
 
local plr = script.Parent.Parent
local Punch = plr:WaitForChild("leaderstats").PunchPower

if plr.Punch.Value == 100 and 100000 then 
local FireBallSize = Vector3.new(2.19,2.19,2.19) 
game.ServerScriptService.FireBallServer.FireBall.Size = FireBallSize 
end

if plr.Punch.Value == 1000000 or 10000000 then 
local FireBallSize = Vector3.new(10.19,10.19,10.19) 
game.ServerScriptService.FireBallServer.FireBall.Size = FireBallSize
end

if it doesnt work try this send output

2 comments

0

I dont use leaderstats I use Stats I have my leaderstats and then I have PunchPower as value there

0

like it is in serverscriptservice it says Leaderstats and then the value

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