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:

storage = game:GetService("ReplicatedStorage")
local event = storage.Events.PlayerToBaby

script.Parent.MouseButton1Click:connect(function()
	event:FireServer()
	print("Request sent.")
end)

And here is the Script inside the RemoteEvent:

script.Parent.OnServerEvent:connect(function(player)
	print("Request received.")
	local char = player.Character
	for i in char do
		if char[i]:IsA("BasePart") and char[i].Size == Vector3.new(1,2,1) then
			char[i].Transparency = 1
		end
	end
	local mesh = Instance.new("SpecialMesh", char:FindFirstChild("Torso"))
end)

The only output I get is "Request sent." Why?

Please help. It is very crucial to my fame, fortune, and chocolate milk!

2 comments

0

I honestly don't see anything incorrect, check your explorer and make sure everything "navigates" correctly.

0

I was able to resolve the problem by changing the parent of the server-side script. Thank you, Tomstah.