--Server script placed in ServerScriptService
local repStorage = game:GetService("ReplicatedStorage") local remote = repStorage:WaitForChild("Remote") remote.OnServerEvent:Connect(function(player) print("SERVER") local MoonArcTemplate = Instance.new("Part") MoonArcTemplate.Name = "MoonArc"; MoonArcTemplate.Anchored = true; MoonArcTemplate.CanCollide = false; MoonArcTemplate.Transparency = 1; MoonArcTemplate.Size = Vector3.new(1,1,1); local moonDecal = Instance.new("Decal",MoonArcTemplate) moonDecal.Texture = "http://www.roblox.com/asset/?id=12345678" MoonArcTemplate.Position = player.Character["UpperTorso"].Position end)
--Local script inside a text button
local repStorage = game:GetService("ReplicatedStorage") local remote = repStorage:WaitForChild("Remote") script.Parent.MouseButton1Click:Connect(function() remote:FireServer() end)
This works on Roblox studio but when I run it online, the remote event does not even fire( Print("SERVER") doesn't even run)