Hello, I need some assistance. I am currently working on a GUI, and I am trying to make is so that when you run the command “!EF” it enables the food ordering system,
Heres the local script,
home.LeftMenuBar.Frame.Food.MouseButton1Click:Connect(function()
home:TweenPosition(UDim2.new(1,0,0,0))
food:TweenPosition(UDim2.new(0,0,0,0))
wait(1)
home.Visible = false
home:TweenPosition(UDim2.new(-1,0,0,0))
food.TopBar:TweenPosition(UDim2.new(0,0,0,0))
food.Status.Visible = true
if game.ServerScriptService.Script.Value.Value == true then
food.Mains:TweenPosition(UDim2.new(0.01,0,0.127,0))
food.Status.Visible = false
end
wait(3)
home.Visible = true
end)
and heres the main script in server script service.
local groupid = 6418380
local grouprank = 200
game.Players.PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(msgenable)
if msgenable == "!EF" then
if plr:GetRankInGroup(groupid) >=grouprank then
script.Value.Value = true
print("Message Ran")
end
end
end)
end)