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

Basic Tool Script Not Working, possible roblox studio glitch?

Asked by 3 years ago

I made a basic tool with a basic script that does this:

The player equips the tool, it prints 'hello' to the console, the tool consist of this:

1: Tool in starterpack 2: serverscript inside tool

this is the code

local tool = script.Parent

tool.Activated:Connect(function()
    print('YEET')
end)

I think I must have done something so stupid or roblox is legit broken right now, do you know?

1 answer

Log in to vote
1
Answered by 3 years ago
Edited 3 years ago
script.Parent.Activated:Connect(function()
print("Working")
end)

I've tested it myself too. It's most likely roblox, assuming that you've done it similar to this:

Script in tool: https://gyazo.com/8f663eac1fec05807bbcc002ecec7e24

Console Print: https://gyazo.com/5f29fdb08d0b1c7fb510a51b3da87edb

0
I found out the main reason, the tool I had, well, had no handle, It seems that the tool needs a handle to inicate equipping, activating, and unequipping, thats from my research on it. CodedStars 70 — 3y
Ad

Answer this question