I understand what im doing, but this is being a real pain. when i touch a certain brick, it is supposed to tween in a message, but it isnt... here is the script:
function onTouched(part)
script.Parent.CanCollide = false
local frame = game.StarterGui.ScreenGui.Frame
frame:TweenPosition(UDim2.new(0.5,-175,0.5,-11),'Out','Quint',1)
frame.Selfie.Image = "rbxassetid://1244936009"
frame.Talker.Text = "You:"
frame.Message.Text = "Hello, Anybody here?"
wait(4)
frame.Message.Text = "Guess No-One is here..."
wait(4)
frame.Message = "Im Hungry..."
wait(3)
frame.Selfie.Image = "rbxassetid://90267225"
frame.Talker.Text = "Server:"
frame.Message.Text = "Go into town and get something to eat."
wait(5)
frame:TweenPosition(UDim2.new(0.5,-175,10,11),'In','Quint',1)
end
script.Parent.Touched:connect(function(onTouched)

3 comments
I have the script running on a wait loop in the starter gui for now, but the message is supposed to pop up when you walk through a door.
whats the point of using onTouched(part) when you don't do anything with (part) in the script
because it's my game and di can do what i want