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

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

Asked by
WN0820 11
4 years ago

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

0
code block plz raid6n 2196 — 4y
0
script.Parent.Parent.game.ServerScriptService.Leaderstats.PunchPower doesnt make sense raid6n 2196 — 4y

1 answer

Log in to vote
1
Answered by
raid6n 2196 Moderation Voter Community Moderator
4 years ago
Edited 4 years ago

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

0
I dont use leaderstats I use Stats I have my leaderstats and then I have PunchPower as value there WN0820 11 — 4y
0
like it is in serverscriptservice it says Leaderstats and then the value WN0820 11 — 4y
Ad

Answer this question