of     2   
chevron_rightchevron_rightchevron_right

UnderWorldOnline
#225680559Wednesday, September 27, 2017 11:19 PM GMT

Okay can someone tell me why FE breaks everything in my game, even this script breaks completely local Candy = script.Parent.Parent.Parent.Parent.Parent.Parent.leaderstats.Candy while true do wait() script.Parent.Text = Candy.Value end
Brandon5220
#225680603Wednesday, September 27, 2017 11:20 PM GMT

You can't do that without a RemoteEvent.
UnderWorldOnline
#225680749Wednesday, September 27, 2017 11:23 PM GMT

@Brandon Even though it works just fine without FE. This is so stupid.
SinisterMemories
#225680777Wednesday, September 27, 2017 11:24 PM GMT

"script.Parent.Parent.Parent.Parent.Parent.Parent.leaderstats.Candy" boy just do player.leaderStats.Candy attempt to index global 'soul' (a nil value) R$1
LotsOfViolence
#225680796Wednesday, September 27, 2017 11:24 PM GMT

local client = game.Players.LocalPlayer client.CharacterAdded:Wait() local Candy = client.leaderstats.Candy Candy.Changed:Connect(function() script.Parent.Text = Candy.Value end) idk lole
LaeMVP
#225680798Wednesday, September 27, 2017 11:24 PM GMT

FE doesn't break stuff, your code is just bad xd. also is that a localscript or not
Brandon5220
#225680811Wednesday, September 27, 2017 11:24 PM GMT

You can't make scripts work without a RemoteEvent with FE.
UnderWorldOnline
#225680852Wednesday, September 27, 2017 11:25 PM GMT

@brandon So literally anything that interferes with someone that has a different parent needs a remotefunction? omg
chexyalani
#225680867Wednesday, September 27, 2017 11:26 PM GMT

Are you using a server - sided or client - sided script?
Lnxl
#225680874Wednesday, September 27, 2017 11:26 PM GMT

You can just but a lot of things require a remote event. --Game:Destroy()--
chexyalani
#225680938Wednesday, September 27, 2017 11:27 PM GMT

not everything on an fe game needs a RemoteEvent.
UnderWorldOnline
#225681037Wednesday, September 27, 2017 11:30 PM GMT

Here's an example, a regular script in GUI. It works but if FE is enabled it does not. Do I really need a remote event for this? And i'm really unfamiliar with them so can someone give an example using this? victim = script.Parent.Parent.Parent.Parent.Parent.Character function change() v = victim:GetChildren() for f = 1,#v do if v[f].className == "CharacterMesh" then v[f]:Remove() end end p = script:GetChildren() for i = 1,#p do if p[i].className == "CharacterMesh" then p[i]:clone().Parent = victim end end end script.Parent.MouseButton1Down:connect(change)
chexyalani
#225681280Wednesday, September 27, 2017 11:36 PM GMT

First of all, a server - sided script is not recommended to be used for a gui. It is recommended to be used in a client - sided script. The reason it works in studio is because everything in studio runs locally.
UnderWorldOnline
#225681814Wednesday, September 27, 2017 11:50 PM GMT

I'm so confused
Tumak1337
#225682244Thursday, September 28, 2017 12:00 AM GMT

If you want to check if something would work with FE enabled, click the "Tools" tab in Studio, hover over "Test", and click both "Start Server" and "Start Player". The generic F5 command to play-test does not accurately simulate the true environment. As for your script, that should actually work if you paste it into a LocalScript in your PlayerGui. Normal scripts won't function there anymore. Doing that will allow the script to do what you want, however nobody else will see what you're doing to those meshes unless you make that operation a remote event/function.
UnderWorldOnline
#225682292Thursday, September 28, 2017 12:02 AM GMT

@tumak Problem is I don't know how to make it a remote function and i'm trying to learn but it's not coming to me
chexyalani
#225682391Thursday, September 28, 2017 12:04 AM GMT

Tumak1337
#225682651Thursday, September 28, 2017 12:09 AM GMT

Don't worry about it, I had to figure this out, too. Robloxwiki has a useful page for it. http://wiki.roblox.com/index.php?title=Remote_Events_and_Functions Basically, you want to change those meshes, but nobody else will see them unless you tell the server to do it, too. Therefore, you'll need to activate a remote event or function — preferably in ReplicatedStorage — to let the server know you want to do that. A script will need to be placed in ServerScriptService (it's more secure) to listen for the event/function to activate, where it will then do what you want for you. The best part is, events will return your player as a variable, so you don't need to do the bunch of .Parent's for the victim variable.
UnderWorldOnline
#225682958Thursday, September 28, 2017 12:15 AM GMT

local Players = game:GetService("Players") local badge = game:GetService("BadgeService") local Switch = game.ReplicatedStorage["Costume Event"] local function Costume(player) --if badge:UserHasBadge(player.userId,301120238) then Switch:FireClient(player) end --end script.Parent.MouseButton1Down:Connect(Costume) Unable to cast value to Object line 7
chexyalani
#225683062Thursday, September 28, 2017 12:17 AM GMT

Is this a client-sided script?
UnderWorldOnline
#225683113Thursday, September 28, 2017 12:18 AM GMT

@chexy regular script in GUI Button local Players = game:GetService("Players") local badge = game:GetService("BadgeService") local Switch = game.ReplicatedStorage["Costume Event"] local function Costume(player) --if badge:UserHasBadge(player.userId,301120238) then Switch:FireClient(player) end --end script.Parent.MouseButton1Down:Connect(Costume) local script in replicatedstorage local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") victim = game.Players.LocalPlayer.Character local player = Players.LocalPlayer local Event = ReplicatedStorage:WaitForChild("Costume Event") local function Switch() local v = victim:GetChildren() for f = 1,#v do if v[f].className == "CharacterMesh" then v[f]:Remove() end end p = script:GetChildren() for i = 1,#p do if p[i].className == "CharacterMesh" then p[i]:clone().Parent = victim end end end Event.OnClientEvent:Connect(Switch)
JarodOfOrbiter
#225683213Thursday, September 28, 2017 12:20 AM GMT

"local script" "in replicatedstorage" Don't put those in the same sentence. "regular script" "GUI Button" DEFINITELY don't put those in the same sentence. If you have a regular script inside of a GUI, it's no wonder your game is broken.
UnderWorldOnline
#225683399Thursday, September 28, 2017 12:24 AM GMT

@jarod well reverse it, the ### ## replicated and local in gui. I still don't get what the error is
codironblade
#225683559Thursday, September 28, 2017 12:28 AM GMT

yeh it's supposed to break your game if scriper is trash at networking like you
Tumak1337
#225683569Thursday, September 28, 2017 12:28 AM GMT

Oh, that one's easy. You're using ############ ## the GUI rather than FireServer(). You're trying to call yourself, basically. FireServer() is Client->Server, FireClient() is Server->Client

    of     2   
chevron_rightchevron_rightchevron_right