Well, I created a script which does what it does but without Filtering Enabled, but when I enable it, as I see, you guys use it... It simply doesn't work! Any help?
SCRIPT:
local GUI_Name = "Blacksmith_GUI"
script.Parent.Touched:Connect(function(player)
local char = player.Parent
local plr = game:GetService("Players"):GetPlayerFromCharacter(char)
if char:FindFirstChild("Humanoid") ~= nil then
local gui = plr.PlayerGui:WaitForChild(GUI_Name)
gui.Enabled = true
end
end)
And also in that GUI, when you try to purchase an item, this problem appears: ServerStorage is not a valid member of DataModel, here is the script:
local player = game:GetService("Players").LocalPlayer
local Storage = game.ServerStorage:FindFirstChild("Storage")
local SwordName = "DiamondSword"
local Sword = Storage.Swords:WaitForChild(SwordName)
local Database = player:WaitForChild("Database")
script.Parent.MouseButton1Click:connect(function()
if Database.Value_Inv.Stick_Value.Value >= 1 and Database.Value_Inv.Stick_Value.Value >= 2 then
script.Parent.AutoButtonColor = false
Database.Value_Inv.Stick_Value.Value = Database.Value_Inv.Stick_Value.Value - 1
Database.Value_Inv.Diamond_Value.Value = Database.Value_Inv.Diamond_Value.Value - 2
local copy = Sword:Clone()
copy.Parent = player.Backpack
local copya = Sword:Clone()
copya = player.StarterGear
end
end)
I'm sorry if my script is bad because I'm still a beginner! Any help will be appriciated! I've tried so many times fixing this and it didn't work, I don't know why is scripting in FE so hard......

1 comment
Well, I guess, I never used Remote Events and Im trying to bypass them so... I will need more help about it, and the game will be for 1 player so...