manounou0
(RoParkourBlox)
#1
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)
- Create a
LocalScript
in your Tool
- Put this in the
LocalScript
- 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)
manounou0
(RoParkourBlox)
#3
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:
system
(system)
Closed
#5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.