Print dont work

my print wont work (local script):

local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()
print("1")
game.StarterPack.Tool.Equipped:Connect(function()
	print("2")
	mouse.Button1Up:Connect(function()
		print("3")
		local Balle = Instance.new("Part", workspace)
		Balle.Name = "Balle"
		Balle.Size = Vector3.new(1.8, 2.05, 2)
		Balle.Position = game.StarterPack.Tool.Handle.CFrame
		while true do
			wait(.05)
			Balle.Position += Vector3.new(1, 0, 0)
		end
	end)
end)
  1. Create a LocalScript in your Tool
  2. Put this in the LocalScript
  3. Check the console for any messages and check if it works
local Players = game:GetService("Players")

local plr = Players.LocalPlayer
local mouse = plr:GetMouse()

local tool = script.Parent
print("1")
tool.Equipped:Connect(function()
	print("2")
	mouse.Button1Up:Connect(function()
		print("3")
		local Balle = Instance.new("Part", workspace)
		Balle.Name = "Balle"
		Balle.Size = Vector3.new(1.8, 2.05, 2)
		Balle.Position = tool.Handle.CFrame
		while true do
			task.wait(.05)
			Balle.Position += Vector3.new(1, 0, 0)
		end
	end)
end)

it says equipped is not a valid member of backpack:

local Players = game:GetService("Players")

local plr = Players.LocalPlayer
local mouse = plr:GetMouse()

local tool = script.Parent
print("1")
tool.Equipped:Connect(function()
	print("2")
	mouse.Button1Up:Connect(function()
		print("3")
		local Balle = Instance.new("Part", workspace)
		Balle.Name = "Balle"
		Balle.Size = Vector3.new(1.8, 2.05, 2)
		Balle.Position = tool.Handle.CFrame
		while true do
			task.wait(.05)
			Balle.Position += Vector3.new(1, 0, 0)
		end
	end)
end)

You did not execute the first step properly.

1. Create a LocalScript in your TOOL

The LocalScript should not be in StarterPack

It should be like this:
jaghlEQlMb

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.