local inputLabel = script.Parent
local inputValue = script.Parent.Parent.Value
script.Parent.Parent.Enter.Activated:Connect(function()
print('Button Pressed')
if game.Players:FindFirstChild(inputLabel.Text) then
print('Valid Player')
local playerVal = game.Players:FindFirstChild(inputLabel.Text)
local valueVal = script.Parent.Parent.Value.Text
local character = playerVal.Character
local hum = character.Humanoid
game.ReplicatedStorage.OwnerInput:FireServer(playerVal, valueVal, character, hum)
else
print('Invalid Player')
end
end)
I'm trying to edit the speed of the player who was input into a textbox, how does one accomplish this in the Server Script receiving the RemoteEvent

1 comment
Thank You