script.Parent.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") Drop - game.Workspace.Part Drop.Anchored = True
Im trying to make a drop anchor when touched please help me out guys
Hmm, try this;
if game:FindService("Workspace")and game.Workspace:FindFirstChild("Part")then --If game finds Workspace, and finds Part within Workspace then script.Parent.Touched:connect(function(hit) --The event/function after finding if hit.Parent:FindFirstChild("Humanoid")then --If finds Humanoid then game.Workspace.Part.Anchored=true --Anchores Part that which is within Workspace --Rest of coding here end end) end --All the ends
I hope this helped!
You have two problems: First, you put Drop - game.Workspace.Part
instead of Drop = game.Workspace.Part
.
Second, you forgot the ends. Add
end end)
At the bottom.