Jump to content

Simple help :D


enzoDs

Recommended Posts

  • Moderators
1 hour ago, enzoDs said:

Hello, i need convert a string to 3 variables


x,y,z = "15,20,18"

----------->

x = 15
y =	20
z = 18

Thanks :D

 

local position = "15,20,18"

local x, y, z = unpack(split(position, ","))

 

 

  • Thanks 2
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...