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

Is it possible to turn plus signs and other signs in that are strings into real plus signs?

Asked by 5 years ago
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)


int =   Instance.new("StringValue")
int.Parent = workspace
int.Value = '50%'

wait(2)
print(tonumber(int.Value)(1000))


end)
end)

So Im trying to turn the % into the real sign not a string and this is supposed to print out 500 but It keeps erroring saying nil value and I know I did something wrong

0
tonumber returned nil because it can't convert a % sign into a number. And % is the modulus operator. You need to be more specific. User#24403 69 — 5y
0
LoadString pidgey 548 — 5y
0
I want to make an equation with the modulus operator so how can I turn it into like an actually functioning thing? Overseer_Prince 188 — 5y

Answer this question