local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
--stuff you dont need to know
local remotefunction = game:GetService("ReplicatedStorage").RemoteEvent

local debounce = 0
local tr = 0

 script.Parent.Activated:Connect(function()
   if not debounce == 1 then  
     debounce = 1
	 planimation:Play()
	 script.Parent.SodaSlurp:Play()
	 remotefunction:FireServer()
	 plgui.Visible = false
	 plgui.Position = UDim2.new(mouse.X, mouse.Y)
--more stuff you dont need to know

Basically, when you activate the tool, it is meant to make the text label go to the mouseX and mouseY but it doesn't do anything.

Help please!

EDIT: Because of the mouse.X and Y part, it is making everything else stop too (it worked before).