Hi, So I was trying to change a value based on a text input given by the user but its not working properly. Instead of showing text, its showing the actions I take. What can I do?
client Script:
script.Parent.Changed:Connect(function(plr)
local currenttext = script.Parent.Text
game.ReplicatedStorage.ChangeText:FireServer(plr,currenttext)
end)
ServerScript:
game.ReplicatedStorage.ChangeText.OnServerEvent:Connect(function(plr,CurrentText)
print("Text Changed")
print(CurrentText)
if script.Parent.Parent.Parent.Name == plr.Name .."'s Table" then
script.Parent.Parent.Parent.TextSign.TextPart.SurfaceGui.TextLabel.Text = CurrentText
end
end)