Advertisement
Eminic

ui instinct

Nov 21st, 2017
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2. local char = plr.Character
  3. local HumanoidRootPart=char.HumanoidRootPart
  4. local ult = true
  5. print'Ultra Instinct Activated...'
  6.  
  7.  
  8.  
  9. local part1 = Instance.new("Part",workspace)
  10. part1.Size = Vector3.new(4,3,4)
  11. part1.Transparency = 1
  12. part1.Material = "SmoothPlastic"
  13. part1.Name = "ultra"
  14. part1.CanCollide = false
  15.  
  16. if workspace.ultra then
  17. part1.Touched:connect(function(hit)
  18. if ult == true then
  19. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent.Name ~= plr.Name then
  20. HumanoidRootPart.CFrame = HumanoidRootPart.CFrame * CFrame.new(math.random(-2,10),.1,math.random(-2,10))
  21. elseif hit:IsA("Part") and hit.Name ~= "Base" and not hit.Parent:FindFirstChildOfClass("Humanoid") and not hit.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  22. hit:Destroy()
  23. end
  24. end
  25. end)
  26. end
  27.  
  28. plr:GetMouse().KeyDown:Connect(function(key)
  29.  
  30. if key == "[" then
  31. if ult == true then
  32. print'off'
  33. ult = false
  34. elseif ult == false then
  35. print'on'
  36. ult = true
  37. end
  38. end
  39. end)
  40.  
  41. --[[for i,v in pairs(char:children()) do
  42. if v:IsA("ParticleEmitter") then
  43. v.LockedToPart = true
  44. end
  45. end]]
  46.  
  47. game:GetService('RunService').RenderStepped:connect(function()
  48. part1.CFrame = HumanoidRootPart.CFrame * CFrame.new(0,3,0)
  49. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement