Advertisement
SxScripting

ConqHaki[Local Script]

Sep 12th, 2021
1,427
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. local RS = game:GetService("ReplicatedStorage")
  2. local UIS = game:GetService("UserInputService")
  3. local Player = game.Players.LocalPlayer
  4.  
  5. UIS.InputBegan:Connect(function(Input,IsTyping)
  6. if IsTyping then return end
  7. if Input.KeyCode == Enum.KeyCode.E then
  8. game.ReplicatedStorage.Events.getConHaki:FireServer()
  9. end
  10. end)
  11.  
  12. RS.Events.getConHaki.OnClientEvent:Connect(function(Duration)
  13. local Effects = RS.Effects:Clone()
  14.  
  15. for i,v in pairs(Effects:GetChildren()) do
  16. if not v:IsA("Part") or not v:IsA("MeshPart") then
  17. v.Parent = game.Lighting
  18. end
  19. end
  20.  
  21. local StartTime = os.clock()
  22. while (StartTime - os.clock()) >= -Duration do
  23. local x = math.random(-150,150)/100
  24. local y = math.random(-150,150)/100
  25. local z = math.random(-150,150)/100
  26. Player.Character.Humanoid.CameraOffset = Vector3.new(x,y,z)
  27. task.wait()
  28. end
  29. Player.Character.Humanoid.CameraOffset = Vector3.new(0,0,0)
  30.  
  31. for Index,Value in pairs(game:GetService("Lighting"):GetChildren()) do
  32. if Value:IsA("Instance") then
  33. Value:Destroy()
  34. end
  35. end
  36. end)+
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement