#how can I make this script work

9 messages · Page 1 of 1 (latest)

fringe ember
#

game.Workspace.CutscenePart.Touched:Connect(function()
    if deb == false then
        deb = true
        wait(.5)
        script.Parent.Visible = true
        script.Parent.BackgroundColor3 = Color3.new(1, 1, 1)
        script.Parent.Position = "{0.313, 0},{0.91, 0}"
        script.Parent.Text = "OMG! I REALLY WANT A CAR!"
        wait(7)
        script.Parent.Text = "but wait.. let me take a look on them"
        wait(4)
        script.Parent.Text = "This one nice, but... no"
        wait(7)
        script.Parent.Text = "Noooooooo"
        wait(7)
        script.Parent.Text = "after looking on all cars..."
        wait(4)
        script.Parent.Text = "i found this one... i loved it!"
        wait(9)
        script.Parent.BackgroundColor3 = Color3.new(1, 0.203922, 0.215686)
        script.Parent.Position = "{0.321, 0},{0.222, 0}"
        script.Parent.Text = "hey noob! what car do you liked?"
        wait(3)
        script.Parent.BackgroundColor3 = Color3.new(1, 1, 1)
        script.Parent.Position = "{0.313, 0},{0.91, 0}"
        script.Parent.Text = "the AMONGUS one.. how much is it?"
        wait(3)
        script.Parent.BackgroundColor3 = Color3.new(1, 0.203922, 0.215686)
        script.Parent.Position = "{0.321, 0},{0.222, 0}"
        script.Parent.Text = "3M bobux, lol"
        wait(3)
        script.Parent.BackgroundColor3 = Color3.new(1, 1, 1)
        script.Parent.Position = "{0.313, 0},{0.91, 0}"
        script.Parent.Text = "uuhh, i cant aford it"
        wait(3)
        script.Parent.BackgroundColor3 = Color3.new(1, 0.203922, 0.215686)
        script.Parent.Position = "{0.321, 0},{0.222, 0}"
        script.Parent.Text = "your problem dude, go work"
        wait(3)
        script.Parent.BackgroundColor3 = Color3.new(1, 1, 1)
        script.Parent.Position = "{0.313, 0},{0.91, 0}"
        script.Parent.Text = "uhmm ok..."
        wait(2)
        script.Parent.Visible = false
        wait(1)
        deb = false
    end
end)```
#

everything is working

#

but the position lines arent working

tiny island
#

help

#

me

fringe ember
#

its not working to change position

coarse niche
#

oh

#

so you typed in

script.Parent.Position = "{0.313, 0},{0.91, 0}"
#

instead try:

script.Parent.Position = Vector3.new(0.313, 0,0.91, 0)