I have a part and when something hits it, it grows. I want only if a human touches it.
x = game.Workspace.Cube.Part settime= 1 mov = false x.Touched:connect(function() if mov == false then mov=true x.Size = x.Size + Vector3.new(1,1,1) x.CFrame = CFrame.new(-8,-1,-3) wait(settime) mov=false end end)
x = game.Workspace.Cube.Part settime= 1 mov = false x.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") ~= nil then -- checks if theres a humanoid if mov == false then mov=true x.Size = x.Size + Vector3.new(1,1,1) x.CFrame = CFrame.new(-8,-1,-3) wait(settime) mov=false end end end)