RemoteEvent not receiving request?
Hello.
I'm trying to make a GUI button that, when clicked, will change your character into a classic Roblox baby.
Here is the LocalScript inside the button:
1 | storage = game:GetService( "ReplicatedStorage" ) |
2 | local event = storage.Events.PlayerToBaby |
4 | script.Parent.MouseButton 1 Click:connect( function () |
And here is the Script inside the RemoteEvent:
01 | script.Parent.OnServerEvent:connect( function (player) |
02 | print ( "Request received." ) |
03 | local char = player.Character |
05 | if char [ i ] :IsA( "BasePart" ) and char [ i ] .Size = = Vector 3. new( 1 , 2 , 1 ) then |
06 | char [ i ] .Transparency = 1 |
09 | local mesh = Instance.new( "SpecialMesh" , char:FindFirstChild( "Torso" )) |
The only output I get is "Request sent." Why?
Please help. It is very crucial to my fame, fortune, and chocolate milk!