✓ Accepted answer
Hi AgentGalahad,
The reason you're having a problem with this script in FE is because you're running physical changes through local scripts. If you want things to have server changes, then you need to run them through ServerScripts. Local Scripts will run locally and will not let the whole Server see the changes made through local scripts in FE.
##Here, I'll just give you an example of how you can handle physical changes that you want the whole server to do.
LOCAL SCRIPT
local players = game:GetService("Players");
local rs = game:GetService("ReplicatedStorage");
local uis = game:GetService("UserInputService");
local player = players.LocalPlayer;
local re = rs:WaitForChild("Make Part");
function do_it(key, gp)
if key.KeyCode == Enum.KeyCode.Q and not gp then
re:FireServer();
end
end
uis.InputBegan:Connect(do_it);
SERVER SCRIPT
local rs = game:GetService("ReplicatedStorage");
local re = rs:WaitForChild("Make Part");
re.OnServerEvent:Connect(function(plr)
local part = Instance.new("Part");
local char = plr.Character or plr.CharacterAdded:Wait();
local torso = char:WaitForChild("HumanoidRootPart");
part.CFrame = torso.CFrame * CFrame.new(0, 7, 0);
part.Size = Vector3.new(math.random(5), math.random(5), math.random(5));
part.CanCollide = false;
part.BrickColor = BrickColor:random();
part.Shape = Enum.PartType.Ball;
part.Material = Enum.Material.Neon;
local weld = Instance.new("Weld");
local temp = torso.CFrame;
weld.Parent = part;
weld.Part0 = torso;
weld.Part1 = part;
weld.C0 = torso.CFrame:inverse() * temp;
weld.C1 = part.CFrame:inverse() * temp;
part.Parent = workspace;
end)
###Well, I hope I helped and I know this doesn't address your problem directly but, it's an example you can use to solve your problem. I didn't want to just give you the answer, I want you to work for it yourself. So, the RemoteEvent is located under ReplicatedStorage, the ServerScript is and I think needs to be under ServerScriptService, and the local script needs to be on the client, I put it under StarterGui, which goes to the client.
##Have a wonderful day/night.
Thanks,
Best regards,
~~ KingLoneCat