[50 ROBUX FOR FIX] Module can't locate PlayerGui

I fixed the leaderstats by the way:

--//Created By Dusty Himself



--Variables//		

local Players = game:GetService("Players")
local Humanoid = script.Parent.Humanoid
local humanoidRootPart = script.Parent:FindFirstChild("HumanoidRootPart")
local pfs = game:GetService("PathfindingService")
local Customer = script.Parent
local PlayerValue = script.Player
local Points = game.Workspace.Points
local chair = Points:GetChildren()
local random = math.random(1, 2)
local chosenChair = chair[random]
local BackHome = game.Workspace.BackHome
local path = pfs:CreatePath()

local walkAnim = Humanoid:LoadAnimation(script.Walk)
local emote = Humanoid:LoadAnimation(script.Emote)
local animPlaying = false

local prompt = Customer.GiveCutPrompt
local starterGui = game:GetService("StarterGui")
local popups = starterGui.PopUp
local CashPopUp = popups.CashPopUp
local CashNumberPopUp = CashPopUp.CashNumber
local CashNumberPopUpBG = CashPopUp.CashNumber.BGHowMuchPay
local replicatedStorage = game.ReplicatedStorage
local MoneySound = script["Money Sound"]
local CompletionSound = script["CompletionSound"]
local popUp = CashNumberPopUp.Parent

--Creating Going to chair Path //

--Animations
if animPlaying == false then
	walkAnim:Play()
end
if animPlaying == false then
	emote:Play()
end
local function Jump()
	Customer.Humanoid.Jump = true
end
--Functions//

function GoToChair()
	path:ComputeAsync(humanoidRootPart.Position, chosenChair.Position)
	
for _, waypoint in pairs(path:GetWaypoints()) do
		Customer.Humanoid:MoveTo(waypoint.Position)
		if animPlaying == false then
			walkAnim:Play()
			animPlaying =true
		end
		Customer.Humanoid.MoveToFinished:Wait()
	end
end
--Creating the leaaving path
function GoToHome()
path:ComputeAsync(humanoidRootPart.Position, BackHome.Position)

for _, waypoint in pairs(path:GetWaypoints()) do
		Customer.Humanoid:MoveTo(waypoint.Position)
		if animPlaying == false then
			walkAnim:Play()
			animPlaying = true
			prompt.Enabled = false
		end
		Customer.Humanoid.MoveToFinished:Wait()
	end
end



prompt.Triggered:Connect(function(player)
	
	local leaderstats2 = player:WaitForChild("leaderstats", 1)
	local Cash = leaderstats2:WaitForChild("Cash", 1)
	local ChosenNumber = math.random(6,30)
	local addedAmount = replicatedStorage.AddedAmount
	local addedAmountBG = replicatedStorage.AddedAmountBG
	
	wait()
	
	addedAmount.Value = ChosenNumber
	addedAmountBG.Value = ChosenNumber
	Cash.Value = Cash.Value + ChosenNumber
	
	
end)


prompt.TriggerEnded:Connect(function(player)
	wait(.15)
	CompletionSound:Play()
	MoneySound:Play()
	emote:Play()
	prompt.Enabled = true
	wait(1.7)
	prompt.Enabled = false
	walkAnim:Play()
	GoToHome()
	wait(2)
	Customer:Remove()
end)


--Functions in action//
wait(1)
walkAnim:Play()
GoToChair()
prompt.Enabled = true
PlayerValue:GetPropertyChangedSignal("Value"):Connect(function()
	if PlayerValue.Value:IsA("Player") then
		game:GetService("ReplicatedStorage").EnablePromptEvent:FireClient(PlayerValue.Value, PlayerValue.Parent.Parent.GiveCutPrompt)
	end
end)
PlayerValue.Value = game.Players:GetPlayers()[math.random(#game.Players:GetPlayers())]
print("WentToChair")

walkAnim:Stop()



1 Like

Huh? I havent done the fix yet because it will take 30 minutes to code the fix

1 Like

i mean fix the ā€œur moduleā€ part as in u need to put something valid there u dont need to transfer anything @Scriptz7

1 Like

also when the script works dont give the robux (50cents) to me lol

1 Like

Okay, I am currently coding the fix sdfsdfsdfsdfsdf

2 Likes

robloxapp-20230722-2110553.wmv (669.5 KB)

1 Like

Hey thanks! Do you think you can send a clip of it working or the file of it working because it is not showing up for me using this script

1 Like

Just did :+1: (uneiowoeiferer)

1 Like

What I am trying to do is make the delivery system with the boxes in the corner play a tween UI pop up

1 Like

Thanks everyone. I am going to check over eveyones respones and the first one that fixes it will recieve a comment which then Ill give 50 robux!!!

1 Like

I was wondering what they were for. And what script is it?

1 Like

The notificationClient is the module getting an error. The pizzaDelivery main is requiring it

1 Like

Do you have a copy of the game I can have so I can try to fix it?

1 Like

well @Sonuke2 @ninjamaster5355 @DisksjwYT @kyler_josiah @Scriptz7 @floodedtown @ATotallyRandomAlt this is what happens when u offer robux for a scripting problem lol smh

2 Likes

Iā€™ll fix it easy since everyone else is pretty stupid at this stuff

1 Like

shouldnā€™t you post it in a private dm?

1 Like

not a necessary comment, but you do you man

2 Likes

Okay, I would love to see the results.

2 Likes

Iā€™m guessing my results would probably be better than whatever you can come up with ( I am level 100 scripter)

2 Likes

Blud reported me for bypassing character limit lol

1 Like