Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

So I am having a problem with my roblox model tools. Please look at the other part. Please?

Asked by 4 years ago

So um I have different parts on a model Tool* and the other parts are in a different place mean while the "Handle" Is on my hand Can anyone help me with that? here is the script

from YT

tool = script.Parent handle = tool:WaitForChild("Handle")

tool.Equipped.Connect(function() print("The tool was equipped") end)

tool.Activated:Connect(function() print("The tool has been clicked") end)


tol.Unequipped:Connect(function() print("The tool was unequipped") end)

tool.Deactivated:Connect(function() print("The tool has been clicked") end)

0
Activated and eqquiped is the same thing. JesseSong 3916 — 4y

1 answer

Log in to vote
0
Answered by
JesseSong 3916 Moderation Voter Community Moderator
4 years ago
Edited 4 years ago

put your script in a local scripr Learn more about tools click here

-- ========================================
-- GLOBAL VARIABLES
-- ========================================
local power = 30
wait() 
local tool = nil

local fly = false 

local player = game.Players.LocalPlayer 

local character = player.Character
if not character or not character.Parent then
    character = player.CharacterAdded:wait()
end

local char = character:FindFirstChild("UpperTorso")
if not char then char = character:FindFirstChild("Torso") end

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

local function setupTool()
    tool = Instance.new("Tool")
    tool.Name = "tool"
    tool.RequiresHandle = false
    tool.Parent = game.Players.LocalPlayer.Backpack



    script.Parent = tool

    tool.Parent = game.Players.LocalPlayer.Backpack
end

setupTool()

-- Start flying when player uses tool
function onSelected()   
    character.Humanoid.PlatformStand = true 

            end 
        end 
    end


        wait()
    end 
end 

function onDeselected()

    character.Humanoid.PlatformStand = false 


        end 
    end

    bpos.Parent = nil 
end 

tool.Unequipped:Connect(function() 

tool.Activated:Connect(onSelected) 
tool.Deactivated:Connect(onDeselected)
-
-- ========================================
0
so jesse it repeatly says error error error curry1234jrgothack 0 — 4y
Ad

Answer this question