--✝️-- Welcome to the Pandastroyer channel! Here, you'll be finding Roblox videos on scripting, game tutorials, and more. I hope you enjoy the content, and that you have a amazing blessed day :)
heres the script THAT WORKS: local main = script.parent local part1 = game.workspace.part1 local part2= game.workspace.part2 local bodyPos = Instance.new("BodyPosition") bodyPos.Parent = main while wait() do bodyPos.Position = part1.Position wait(1) bodyPos.Position = part2.Position wait(1) end
could you make a tutorial on how to make it punch? (Such as how to make the animation work and how to make the hitboxes work and do damage) also, i couldnt get the animation to work, i typed it in correctly and i made the animation, (the animation i was doing was a punch) any idea what i did wrong
The working one: local main = game.ReplicatedStorage.SpawnPart -- Имя Парта local player = game.Players.LocalPlayer local mouse = player:GetMouse() local debounce = false mouse.Button1Down:Connect(function() if debounce == false then debounce = true local new = main:Clone() new.Parent = workspace new.Anchored = false new.CanCollide = true new.Position = player.Character.HumanoidRootPart.CFrame * Vector3.new(0,0,-10) wait(1) debounce = false end end)