I am trying to fix a gui that lets me spawn in a ship, it will appear for the player who spawned it and only that player. The game is FE enabled, anyone know how to fix it?
print("Regen GUI made by AzulFX/Vandalized by boatmaster6602")
Player = game.Players.LocalPlayer
for i, v in pairs(script.Parent:GetChildren()) do
if v:IsA("TextButton") then
v.MouseButton1Click:connect(function()
local Ship = game.Lighting:WaitForChild(v.Name):clone()
local Folder = game.Workspace:WaitForChild(Player.Character.Name)
Folder:ClearAllChildren()
Ship.Parent = Folder
Ship:MoveTo (Player.Character.Torso.Position)
end)
end
end

14 comments
It is the StarterGui I'm afraid.
what do you mean with "afraid"?
Oh, I mean it is the StarterGui, that's just how I word things.
Just to know, you think that, or are you sure?
I think, I'm new to this sort of thing.
You have to put this in a server script if this is filtering enabled.
Give a look at the script.
Now it's not working period
"period" !?
It's how I word things.
Yeah, but I didn't understand, what's the error there?
Now nothing spawns
im pretty sure if you use a normal script it will count as everyone but if you use a local script it will count as one player
what makes you think that?