Why is it now working this is my script PLS halp ME
local tool = script.Parent
local Settings = tool:WaitForChild("Settings")
local Strength = Settings.Strength
local Player = game.Players.localPlayer
local PlayerUI = Player:WaitForChild("PlayerGui").PlayerUI
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RemoteEvents = ReplicatedStorage.RemoteEvents
local CoinClicked = RemoteEvents.CoinClicked
local Debounce = false
tool.Activated:Connect(function()
if Player.PlayerStats.CurrentValue.Value < Player.PlayerStats.Storage.Value then
if Debounce == false then
Debounce = true
CoinClicked:FireServer(Strength.Value)
wait(0.25)
Debounce = false
end
else
-- StorageFull Code
end
end)

2 comments
It is at StarterGui (this is the parent)
Your problem is probably one of two things, either the script is trying to access this "PlayerUI" object before its cloned to the player (In that case, do :WaitForChild("PlayerUI") OR you've put PlayerUI in the wrong place or something like that.