ProximitiyPrompt TextLabel problem

When i click play this happens v


It says "Workspace.tablee.Script:21: Attempt to [you cna read the rest]

But i simply made “e” the local for the textlabel above wubbox







local e = workspace.wubbox.Head.BillboardGui.TextLabel.Text
--aded the local part--
local tablething = workspace.tablething
local tablething2 = workspace.tablething2
local tablething3 = workspace.tablething3
local tablething4 = workspace.tablething4
local sign1 = workspace.sign1
local sign2 = workspace.sign2
local tablee = workspace.tablee
--had to add another e because it didnt let me do table--
workspace.tablee.ProximityPrompt.Triggered:Connect(function(plr)
	workspace.tablee.ProximityPrompt:Destroy()
	print("Pressed")
	wait(0.2)
	e.Text = "Hello!"
	wait(4)
	e.Text = "Wanna buy anything?"
	wait(2)
	e.Text = "I'll take that silence as an yes!"
	wait(0.1)
	e.text = "We sell amogus burger, bts meal etc."
	wait(0.1)
	e.Text = "Did you just ask if I'm gay?"
	wait(2)
	e.Text = "I'm not btw."
	wait(3)
	e.Text = "I said.. I'm not.."
	wait(0.1)
	e.Text = "Your banned from my story for thinking i am gay (i am not homohpobic)"
	wait(0.3)
	e.Text = "Wait! Will you buy my lemonade before you go?"
	wait(0.3)
	e.Text = "No? how dare you!"
	wait(0.4)
	e.Text = "*Smashes table*"
	tablee.Anchored = false
	sign2.Anchored = false
	tablething.Anchored = false
	tablething2.Anchored = false
	tablething3.Anchored = false
	tablething4.Anchored = false
	e.Text = "Argh! Leave now!"
end)

Remove the ‘Text’ on the end. That should work.

2 Likes

change this line

local e = workspace.wubbox.Head.BillboardGui.TextLabel.Text

to this

local e = workspace.wubbox.Head.BillboardGui.TextLabel
2 Likes