#Messing around with a key tool and its glitching
79 messages · Page 1 of 1 (latest)
Unanchor the key
Ive tried so many things lmao
Im using weldconstraints
i also have the plugin
if i unanchor it, it falls through the map
If it’s a tool it’l go in ur hand ?
alright, so, the tool isnt in starterpack, does it have to be?
its a walkover pickup
Make it so when you walk on it the tool is cloned in ur backpack
If it’s not in workspace it won’t fall
oh, okay. I'll i try
And so you can unanchor it
Idk, if you put it in starter pack, when a player join he will have the tool automatically no matter what
Yeah, but I dont want the player to have the key automatically. I want it to obtained by walking over it.
You have a script for that rn ?
Not right now currently. I made this like 5 minutes ago.
Ok so you should make a key in your workspace (the one that the player will walk on) and anchor it
And on your script you detect when a player walk on it (.Touched)
And then give the key tool to the player directly in his backpack. To give it you just have to clone the tool and make sure that the tools part are unanchored.
ill make a brand new key rq
Or
You put you key tool in workspace but set the properties CanCollide to true but Anchored to false
Try that, that should be easier @chrome shell
i put the key in workspace, and set the actual tool to cancollide true but anchored to false
Did it worked ?
Yes the parts
All the parts are unanchored ?
Yes
Yes
yeah, it wont work.
What is a touchinterest?
hold on wait
there was a touchinterest in the tool other than the handle
i can pick it up now
But I also wanted to make the key unable to collide with walls, etc
You have to script then
Give me a min
alrighty.
You do you know how to script ?
I understand logics but and some simple scripts but I 100% no.
Uh I’m on phone it’s a bit hard
Make a local script under your tool
And put this script
local tool = script.Parent
local function toolEquipped()
for _, v in pairs(tool:GetChildren())
if v:IsA("BasePart") then
v.CanCollide = false
end
end
end
tool.Equipped:Connect(toolEquipped)
Normally I wouldn’t give you the script ready but I want to sleep and I don’t want to leave with no solution
If it doesn’t work use a normal script
Add a "do" at the end of the line where the is "for"
??
Show my lines numbers please
thank you so much!
i was trouble shooting with AI for so long lmaoo
good night
i want to sleep
may i add you?
before i close the post
If you want but I won’t make any more script for you
** You are now Level 11! **
I’ll tell you where are your errors if you want
yes.