Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local RS = game:GetService("ReplicatedStorage")
- local UIS = game:GetService("UserInputService")
- local Player = game.Players.LocalPlayer
- UIS.InputBegan:Connect(function(Input,IsTyping)
- if IsTyping then return end
- if Input.KeyCode == Enum.KeyCode.E then
- game.ReplicatedStorage.Events.getConHaki:FireServer()
- end
- end)
- RS.Events.getConHaki.OnClientEvent:Connect(function(Duration)
- local Effects = RS.Effects:Clone()
- for i,v in pairs(Effects:GetChildren()) do
- if not v:IsA("Part") or not v:IsA("MeshPart") then
- v.Parent = game.Lighting
- end
- end
- local StartTime = os.clock()
- while (StartTime - os.clock()) >= -Duration do
- local x = math.random(-150,150)/100
- local y = math.random(-150,150)/100
- local z = math.random(-150,150)/100
- Player.Character.Humanoid.CameraOffset = Vector3.new(x,y,z)
- task.wait()
- end
- Player.Character.Humanoid.CameraOffset = Vector3.new(0,0,0)
- for Index,Value in pairs(game:GetService("Lighting"):GetChildren()) do
- if Value:IsA("Instance") then
- Value:Destroy()
- end
- end
- end)+
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement