Script in "StarterPlayerScripts" that's a "LocalScript"
local TweenService = game:GetService("TweenService")
local part = game.Workspace.Part
local UIS = game:GetService("UserInputService")
local Info = TweenInfo.new(
5, --Length [seconds]
Enum.EasingStyle.Sine,
Enum.EasingDirection.Out,
0,
false,
0
)
local Goals = {
Size = Vector3.new(74.6, 27.2, 2)
}
local makePartBiggerTween = TweenService:Create(part, Info, Goals)
UIS.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.R then
game.ReplicatedStorage.RemoteFunction:InvokeServer(makePartBiggerTween)
end
end)
Script that's in "ServerScriptService" and it's a "Normal Script"
game.ReplicatedStorage.RemoteFunction.OnServerInvoke = function(player, code)
code:Play()
end
Now, i can already see there's definitely something wrong, but can't really figure it out.

2 comments
I've debugged the script, and it's the remote function that's not working. I'm not sure what i'm doing wrong?
Nevermind, solved it. Problem was that the variable "makPartBiggerTween" Couldn't been accessed on the script that spells out what i want the input to do.