This is what I did but its not working for when it touches the baseplate or another part thank you for reading please help with my question!
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
mouse.KeyDown:connect(function(key)
if key == "f" then
local part = game.ReplicatedStorage.AcidT:Clone()
part.Parent = game.Workspace
part.Position = mouse.Hit.p + Vector3.new(0,50,0)
local function onPartTouched(part)
part.Touched:Connect(onPartTouched)
local puddel = game.ReplicatedStorage.Puddel:Clone()
puddel.Parent = game.Workspace
puddel.Position = part.Position
game.Workspace.AcidT:Destroy()
end
end
end)

2 comments
That script was made for pressing "F" not touching.
Well the script creates a cube that spawns in the air and i want it so when it touches a part it places a puddel there