RF
ROBLOX FORUMβ€’3mo ago
Anon

Script not working. - Roblox Forum

I want a script that resized a part, for an obby concept. I tried some things out but in the end it didnt really work out. here's the code: local val = game.ReplicatedStorage.Difficulty.Value game.ReplicatedStorage:WaitForChild("Difficulty").Changed:Connect(function() if val >= 0 then workspace.Stickout1.Size = Vector3.new(1, 22, 2val+4) end if val >= 1 then workspace.Stickout1.Size = Vector3.new(1, 22, 1val+5) end if val >= 8 then workspace.Stickout1.Size = Vector3.new(1, 22, 0.5val+9) end if val >= 10 then workspace.Stickout1.Size = Vector3.new(1, 22, 0.2val+12) end if val >= 12 then workspace.Stickout1.Size = Vector3.new(1, 22, 0.1val+13.2) end if val >= 14 then workspace.Stickout1.Size = Vector3.new(1, 22, 0.2val+11.8) end if val >= 15 then workspace.Stickout1.Size = Vector3.new(1, 22, 0.1val+13.3) end if val >= 18 then workspace.Stickout1.Size = Vector3.new(1, 22, 0.2val+11.5) end if val >= 20 then workspace.Stickout1.Size = Vector3.new(1, 22, 0.25*val+10.5) end end) any help would be appreciated! πŸ’ŽπŸ’ŽπŸ’ŽFree ROBUXπŸ’ŽπŸ’ŽπŸ’Ž
3 Replies
Anon
AnonOPβ€’3mo ago
Here's a suggestion:

I didn't test it yet, but I believe the problem was that "val" was never updated. You can, however, get the changed value easily by passing a variable in the function argument thing πŸ’ŽπŸ’ŽπŸ’ŽFree ROBUXπŸ’ŽπŸ’ŽπŸ’Ž
Anon
AnonOPβ€’3mo ago
Roblox Studio Bug - Roblox Forum - ROBLOX FORUM QA
whenever i open a place file/experience in roblox studio it immediately closes the program without any error messages or anything. the only change i can think of that i made was enabling custom materials but that was way earlier in the day. it just all of a sudden didnt work anymore. ive seen several others post similar problems but none are jus...
I think I won't sleep - Grow a Garden - Grow a Garden (Roblox)
Huhuhuhu I need to get the moon mango seed because I find it pretty cute BWAHAHAKDJSAKJSDGJAHSDA (I will stay up late tonight till I find one) πŸ’ŽπŸ’ŽπŸ’ŽFree ROBUXπŸ’ŽπŸ’ŽπŸ’Ž
Tips for not getting scammed from trades (Coming from a victim ofc)...
Don't do 1 for 1 trades - If you give the other person your pet/fruit, they could just leave and block you. Instead, do a trade that would minimize loss, like give the other person part of the trade and then have them hand over part of their offer/the thing ur trading for. Do trades with friends/people you heavily trust - Do not go to LF channel...
Why does everyone beg for Candy Blossoms? - Grow a Garden - Grow a ...
Every server I join like 3 people come up to me and ask for a Candy Blossom. They're not that rare, are they? I was playing for a while before they added them. πŸ’ŽπŸ’ŽπŸ’ŽFree ROBUXπŸ’ŽπŸ’ŽπŸ’Ž

Did you find this page helpful?