Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
I want to make a script that when a textbox is changed it prints the new text in serverside
Post Flair (click to view more posts with a particular flair)
Post Body

here is my localscript:

local remoteEvent = Instance.new("RemoteEvent")
remoteEvent.Name = "TextBoxUpdateEvent"
remoteEvent.Parent = game:GetService("ReplicatedStorage")


local function onTextBoxChanged()
    local obbycode = script.Parent.TextBox.Text
    print("hi")

    -- Send the obbyCode to the server using a RemoteEvent
    remoteEvent:FireServer(obbycode)
end

script.Parent.TextBox:GetPropertyChangedSignal("Text"):Connect(onTextBoxChanged)

and here is my serverside script:

local replicatedStorage = game:GetService("ReplicatedStorage")
local remoteEvent = replicatedStorage:WaitForChild("TextBoxUpdateEvent")

remoteEvent.OnServerEvent:Connect(random())

function random(obbycode)
    print(obbycode)
end

I'm quite new to scripting and I understand already a lot, but I have never figured out how to use a remote event

Author
Account Strength
60%
Account Age
1 year
Verified Email
Yes
Verified Flair
No
Total Karma
674
Link Karma
648
Comment Karma
26
Profile updated: 2 days ago
Posts updated: 1 week ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago