Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- tween shit
- _G.target = "Bandit Keith" -- Put NPC Name
- Speed = 5 -- if it kicks u increase the number
- TweenService = game:service'TweenService'
- TweenInfo = TweenInfo.new(Speed)
- TweenGoal = {}
- --------------
- getfenv().plr = game.Players.LocalPlayer
- rs = game:service'RunService'.RenderStepped
- t = true
- while rs:wait() do
- getfenv().plr.Character.Humanoid:ChangeState(10)
- for i,v in pairs(workspace.NPCS:GetChildren()) do
- if string.match(v.Name,_G.target) then
- if v:FindFirstChild("HumanoidRootPart") then
- TweenGoal.CFrame = v.HumanoidRootPart.CFrame
- Tween = TweenService:Create(getfenv().plr.Character.HumanoidRootPart,TweenInfo,TweenGoal)
- Tween:Play()
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement