How can i take a certain part of orientation, for example:
local newnumber = script.Parent.Orientation.X + 1
script.Parent.Orientation = tostring(newnumber)
How can i take a certain part of orientation, for example:
local newnumber = script.Parent.Orientation.X + 1
script.Parent.Orientation = tostring(newnumber)
local newnumber = script.Parent.Orientation.X + 1
script.Parent.Orientation = Vector3.new(newnumber,script.Parent.Orientation.Y,script.Parent.Orientation.Z)
You need to use Vector3 for this.
Or just
Part.Orientation += Vector3.new(1, 0, 0)
do you know how to do this with text? i was trying to do this,
local randomminute = math.random(1,59)
local randomhour = math.random(1,12)
local randomtime = math.random(1,2)
wait(5)
if randomtime == 1 then
script.Parent.Text = tostring(randomhour)“:“tostring(randomminute)” AM”
elseif randomtime == 2 then
script.Parent.Text = tostring(randomhour)“:“tostring(randomminute)” PM”
end
I dont think you can position parts with text…
nonono, how do you take a specific part of the text and change the words, like if you had the words
“I like fish” in a text box and you wanted to change one of the words to another thing, like you change the “like” in the sentence to “hate”. but in a script
you should start this is another thread, so more people can help
and that requires string formatting