script.Parent.Triggered:Connect(function(Player) print("fire?") local event = game.ReplicatedStorage:WaitForChild("PressedEvent") event:FireClient(Player) print("fired lol") end)
This is in the workspace This prints all of the things I put (This is a normal script)
game.ReplicatedStorage.PressedEvent.OnClientEvent:Connect(function() local config = require(script.Parent.Parent.Parent.Parent.Config) local passed = true print(2) local Player = game.Players.LocalPlayer local function checkRank() print(3) local rankId = Player:GetRankInGroup(config.GroupId) if rankId < config.MinimuimRank then passed = false end end if not config.MinimuimRank == 0 or config.GroupId == 0 then print(3.5) checkRank() end if passed == true then print(4) script.Parent.Parent.Parent.Parent.Guis.StartGUI:Clone().Parent = Player.PlayerGui end end)
This doesn't print anything and doesn't do anything This is located in workspace
This is local script