Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- warn([[
- waddu want frum meee???11??1?
- ]])
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- do
- script.Parent = Player.Character
- --RemoteEvent for communicating
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- --Fake event to make stuff like Mouse.KeyDown work
- local function fakeEvent()
- local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
- t.connect = t.Connect
- return t
- end
- --Creating fake input objects with fake variables
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent and t.Function then
- t.Function(...)
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=Player then return end
- if io.isMouse then
- m.Target = io.Target
- m.Hit = io.Hit
- else
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- end
- for _,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Event = script:WaitForChild("UserInput_Event")
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local Mouse = Player:GetMouse()
- local h,t
- --Give the server mouse data 30 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/30) do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- end]==],Player.Character)
- Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
- end
- function rayCast(Position, Direction, Range, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
- end
- local Player_Size = 1
- function wbtwe(first,second,c0)
- local weld = Instance.new("Weld", first)
- weld.Part0 = first
- weld.Part1 = second
- weld.C0 = second.CFrame:inverse() *second.CFrame *c0
- return weld
- end
- local mas = Instance.new("Model", owner.Character)
- -- DECLARING VARIABLES
- local Base = Instance.new("Model")
- local Part = Instance.new("Part")
- local WeldConstraint = Instance.new("WeldConstraint")
- local Wedge = Instance.new("WedgePart")
- local WeldConstraint_1 = Instance.new("WeldConstraint")
- local Wedge_1 = Instance.new("WedgePart")
- local WeldConstraint_2 = Instance.new("WeldConstraint")
- local Base_1 = Instance.new("Part")
- local Wedge_2 = Instance.new("WedgePart")
- local WeldConstraint_3 = Instance.new("WeldConstraint")
- local Wedge_3 = Instance.new("WedgePart")
- local WeldConstraint_4 = Instance.new("WeldConstraint")
- local Wedge_4 = Instance.new("WedgePart")
- local WeldConstraint_5 = Instance.new("WeldConstraint")
- local Wedge_5 = Instance.new("WedgePart")
- local WeldConstraint_6 = Instance.new("WeldConstraint")
- local Wedge_6 = Instance.new("WedgePart")
- local WeldConstraint_7 = Instance.new("WeldConstraint")
- local Wedge_7 = Instance.new("WedgePart")
- local WeldConstraint_8 = Instance.new("WeldConstraint")
- local Wedge_8 = Instance.new("WedgePart")
- local WeldConstraint_9 = Instance.new("WeldConstraint")
- local Wedge_9 = Instance.new("WedgePart")
- local WeldConstraint_10 = Instance.new("WeldConstraint")
- local Wedge_10 = Instance.new("WedgePart")
- local WeldConstraint_11 = Instance.new("WeldConstraint")
- local Wedge_11 = Instance.new("WedgePart")
- local WeldConstraint_12 = Instance.new("WeldConstraint")
- local Wedge_12 = Instance.new("WedgePart")
- local WeldConstraint_13 = Instance.new("WeldConstraint")
- local Wedge_13 = Instance.new("WedgePart")
- local WeldConstraint_14 = Instance.new("WeldConstraint")
- local Wedge_14 = Instance.new("WedgePart")
- local WeldConstraint_15 = Instance.new("WeldConstraint")
- local Wedge_15 = Instance.new("WedgePart")
- local WeldConstraint_16 = Instance.new("WeldConstraint")
- local Wedge_16 = Instance.new("WedgePart")
- local WeldConstraint_17 = Instance.new("WeldConstraint")
- local Wedge_17 = Instance.new("WedgePart")
- local WeldConstraint_18 = Instance.new("WeldConstraint")
- local Wedge_18 = Instance.new("WedgePart")
- local WeldConstraint_19 = Instance.new("WeldConstraint")
- local Wedge_19 = Instance.new("WedgePart")
- local WeldConstraint_20 = Instance.new("WeldConstraint")
- local Wedge_20 = Instance.new("WedgePart")
- local WeldConstraint_21 = Instance.new("WeldConstraint")
- local Wedge_21 = Instance.new("WedgePart")
- local WeldConstraint_22 = Instance.new("WeldConstraint")
- -- SETTING PROPERTIES
- Base.Name = "Base"
- Base.Parent = mas
- Part.BottomSurface = Enum.SurfaceType.Smooth
- Part.CFrame = CFrame.new(36.542,47.082,-170.268,0.707,-0.707,0,0.707,0.707,0,0,0,1)
- Part.CanCollide = false
- Part.Color = Color3.new(0.294,0.592,0.294)
- Part.Material = Enum.Material.Neon
- Part.Size = Vector3.new(1,1,1.2)
- Part.TopSurface = Enum.SurfaceType.Smooth
- Part.Parent = Base
- WeldConstraint.Part0 = Part
- WeldConstraint.Part1 = Base_1
- WeldConstraint.Parent = Part
- Wedge.BottomSurface = Enum.SurfaceType.Smooth
- Wedge.CFrame = CFrame.new(37.705,47.206,-170.261,0,0,-1,0,-1,0,-1,0,0)
- Wedge.CanCollide = false
- Wedge.Color = Color3.new(0.067,0.067,0.067)
- Wedge.Material = Enum.Material.Slate
- Wedge.Size = Vector3.new(1.1,0.26,0.4)
- Wedge.Parent = Base
- WeldConstraint_1.Part0 = Wedge
- WeldConstraint_1.Part1 = Base_1
- WeldConstraint_1.Parent = Wedge
- Wedge_1.BottomSurface = Enum.SurfaceType.Smooth
- Wedge_1.CFrame = CFrame.new(37.704,47.037,-170.26,0,0,-1,0,-1,0,-1,0,0)
- Wedge_1.CanCollide = false
- Wedge_1.Color = Color3.new(0.067,0.067,0.067)
- Wedge_1.Material = Enum.Material.Slate
- Wedge_1.Size = Vector3.new(1.1,0.26,0.4)
- Wedge_1.Parent = Base
- WeldConstraint_2.Part0 = Wedge_1
- WeldConstraint_2.Part1 = Base_1
- WeldConstraint_2.Parent = Wedge_1
- Base_1.BottomSurface = Enum.SurfaceType.Smooth
- Base_1.CFrame = CFrame.new(36.579,47.063,-170.261,1,0,0,0,1,0,0,0,1)
- Base_1.CanCollide = false
- Base_1.Color = Color3.new(0.067,0.067,0.067)
- Base_1.Material = Enum.Material.Slate
- Base_1.Size = Vector3.new(2,2.1,1.1)
- Base_1.TopSurface = Enum.SurfaceType.Smooth
- Base_1.Name = "Base"
- Base_1.Parent = Base
- Wedge_2.BottomSurface = Enum.SurfaceType.Smooth
- Wedge_2.CFrame = CFrame.new(37.705,46.901,-170.26,0,0,-1,0,-1,0,-1,0,0)
- Wedge_2.CanCollide = false
- Wedge_2.Color = Color3.new(0.067,0.067,0.067)
- Wedge_2.Material = Enum.Material.Slate
- Wedge_2.Size = Vector3.new(1.1,0.26,0.4)
- Wedge_2.Parent = Base
- WeldConstraint_3.Part0 = Wedge_2
- WeldConstraint_3.Part1 = Base_1
- WeldConstraint_3.Parent = Wedge_2
- Wedge_3.BottomSurface = Enum.SurfaceType.Smooth
- Wedge_3.CFrame = CFrame.new(37.704,46.747,-170.26,0,0,-1,0,-1,0,-1,0,0)
- Wedge_3.CanCollide = false
- Wedge_3.Color = Color3.new(0.067,0.067,0.067)
- Wedge_3.Material = Enum.Material.Slate
- Wedge_3.Size = Vector3.new(1.1,0.26,0.4)
- Wedge_3.Parent = Base
- WeldConstraint_4.Part0 = Wedge_3
- WeldConstraint_4.Part1 = Base_1
- WeldConstraint_4.Parent = Wedge_3
- Wedge_4.BottomSurface = Enum.SurfaceType.Smooth
- Wedge_4.CFrame = CFrame.new(37.704,46.441,-170.259,0,0,-1,0,-1,0,-1,0,0)
- Wedge_4.CanCollide = false
- Wedge_4.Color = Color3.new(0.067,0.067,0.067)
- Wedge_4.Material = Enum.Material.Slate
- Wedge_4.Size = Vector3.new(1.1,0.26,0.4)
- Wedge_4.Parent = Base
- WeldConstraint_5.Part0 = Wedge_4
- WeldConstraint_5.Part1 = Base_1
- WeldConstraint_5.Parent = Wedge_4
- Wedge_5.BottomSurface = Enum.SurfaceType.Smooth
- Wedge_5.CFrame = CFrame.new(37.705,46.578,-170.261,0,0,-1,0,-1,0,-1,0,0)
- Wedge_5.CanCollide = false
- Wedge_5.Color = Color3.new(0.067,0.067,0.067)
- Wedge_5.Material = Enum.Material.Slate
- Wedge_5.Size = Vector3.new(1.1,0.26,0.4)
- Wedge_5.Parent = Base
- WeldConstraint_6.Part0 = Wedge_5
- WeldConstraint_6.Part1 = Base_1
- WeldConstraint_6.Parent = Wedge_5
- Wedge_6.BottomSurface = Enum.SurfaceType.Smooth
- Wedge_6.CFrame = CFrame.new(37.704,46.2,-170.259,0,0,-1,0,-1,0,-1,0,0)
- Wedge_6.CanCollide = false
- Wedge_6.Color = Color3.new(0.067,0.067,0.067)
- Wedge_6.Material = Enum.Material.Slate
- Wedge_6.Size = Vector3.new(1.1,0.26,0.4)
- Wedge_6.Parent = Base
- WeldConstraint_7.Part0 = Wedge_6
- WeldConstraint_7.Part1 = Base_1
- WeldConstraint_7.Parent = Wedge_6
- Wedge_7.BottomSurface = Enum.SurfaceType.Smooth
- Wedge_7.CFrame = CFrame.new(37.704,47.894,-170.261,0,0,-1,0,-1,0,-1,0,0)
- Wedge_7.CanCollide = false
- Wedge_7.Color = Color3.new(0.067,0.067,0.067)
- Wedge_7.Material = Enum.Material.Slate
- Wedge_7.Size = Vector3.new(1.1,0.26,0.4)
- Wedge_7.Parent = Base
- WeldConstraint_8.Part0 = Wedge_7
- WeldConstraint_8.Part1 = Base_1
- WeldConstraint_8.Parent = Wedge_7
- Wedge_8.BottomSurface = Enum.SurfaceType.Smooth
- Wedge_8.CFrame = CFrame.new(37.704,47.348,-170.259,0,0,-1,0,-1,0,-1,0,0)
- Wedge_8.CanCollide = false
- Wedge_8.Color = Color3.new(0.067,0.067,0.067)
- Wedge_8.Material = Enum.Material.Slate
- Wedge_8.Size = Vector3.new(1.1,0.26,0.4)
- Wedge_8.Parent = Base
- WeldConstraint_9.Part0 = Wedge_8
- WeldConstraint_9.Part1 = Base_1
- WeldConstraint_9.Parent = Wedge_8
- Wedge_9.BottomSurface = Enum.SurfaceType.Smooth
- Wedge_9.CFrame = CFrame.new(37.704,47.589,-170.259,0,0,-1,0,-1,0,-1,0,0)
- Wedge_9.CanCollide = false
- Wedge_9.Color = Color3.new(0.067,0.067,0.067)
- Wedge_9.Material = Enum.Material.Slate
- Wedge_9.Size = Vector3.new(1.1,0.26,0.4)
- Wedge_9.Parent = Base
- WeldConstraint_10.Part0 = Wedge_9
- WeldConstraint_10.Part1 = Base_1
- WeldConstraint_10.Parent = Wedge_9
- Wedge_10.BottomSurface = Enum.SurfaceType.Smooth
- Wedge_10.CFrame = CFrame.new(37.704,47.726,-170.26,0,0,-1,0,-1,0,-1,0,0)
- Wedge_10.CanCollide = false
- Wedge_10.Color = Color3.new(0.067,0.067,0.067)
- Wedge_10.Material = Enum.Material.Slate
- Wedge_10.Size = Vector3.new(1.1,0.26,0.4)
- Wedge_10.Parent = Base
- WeldConstraint_11.Part0 = Wedge_10
- WeldConstraint_11.Part1 = Base_1
- WeldConstraint_11.Parent = Wedge_10
- Wedge_11.BottomSurface = Enum.SurfaceType.Smooth
- Wedge_11.CFrame = CFrame.new(35.434,47.206,-170.26,0,0,1,0,1,0,-1,0,0)
- Wedge_11.CanCollide = false
- Wedge_11.Color = Color3.new(0.067,0.067,0.067)
- Wedge_11.Material = Enum.Material.Slate
- Wedge_11.Size = Vector3.new(1.1,0.26,0.4)
- Wedge_11.Parent = Base
- WeldConstraint_12.Part0 = Wedge_11
- WeldConstraint_12.Part1 = Base_1
- WeldConstraint_12.Parent = Wedge_11
- Wedge_12.BottomSurface = Enum.SurfaceType.Smooth
- Wedge_12.CFrame = CFrame.new(35.434,46.747,-170.26,0,0,1,0,1,0,-1,0,0)
- Wedge_12.CanCollide = false
- Wedge_12.Color = Color3.new(0.067,0.067,0.067)
- Wedge_12.Material = Enum.Material.Slate
- Wedge_12.Size = Vector3.new(1.1,0.26,0.4)
- Wedge_12.Parent = Base
- WeldConstraint_13.Part0 = Wedge_12
- WeldConstraint_13.Part1 = Base_1
- WeldConstraint_13.Parent = Wedge_12
- Wedge_13.BottomSurface = Enum.SurfaceType.Smooth
- Wedge_13.CFrame = CFrame.new(35.434,47.725,-170.26,0,0,1,0,1,0,-1,0,0)
- Wedge_13.CanCollide = false
- Wedge_13.Color = Color3.new(0.067,0.067,0.067)
- Wedge_13.Material = Enum.Material.Slate
- Wedge_13.Size = Vector3.new(1.1,0.26,0.4)
- Wedge_13.Parent = Base
- WeldConstraint_14.Part0 = Wedge_13
- WeldConstraint_14.Part1 = Base_1
- WeldConstraint_14.Parent = Wedge_13
- Wedge_14.BottomSurface = Enum.SurfaceType.Smooth
- Wedge_14.CFrame = CFrame.new(35.434,46.901,-170.259,0,0,1,0,1,0,-1,0,0)
- Wedge_14.CanCollide = false
- Wedge_14.Color = Color3.new(0.067,0.067,0.067)
- Wedge_14.Material = Enum.Material.Slate
- Wedge_14.Size = Vector3.new(1.1,0.26,0.4)
- Wedge_14.Parent = Base
- WeldConstraint_15.Part0 = Wedge_14
- WeldConstraint_15.Part1 = Base_1
- WeldConstraint_15.Parent = Wedge_14
- Wedge_15.BottomSurface = Enum.SurfaceType.Smooth
- Wedge_15.CFrame = CFrame.new(35.434,47.589,-170.259,0,0,1,0,1,0,-1,0,0)
- Wedge_15.CanCollide = false
- Wedge_15.Color = Color3.new(0.067,0.067,0.067)
- Wedge_15.Material = Enum.Material.Slate
- Wedge_15.Size = Vector3.new(1.1,0.26,0.4)
- Wedge_15.Parent = Base
- WeldConstraint_16.Part0 = Wedge_15
- WeldConstraint_16.Part1 = Base_1
- WeldConstraint_16.Parent = Wedge_15
- Wedge_16.BottomSurface = Enum.SurfaceType.Smooth
- Wedge_16.CFrame = CFrame.new(35.434,46.578,-170.26,0,0,1,0,1,0,-1,0,0)
- Wedge_16.CanCollide = false
- Wedge_16.Color = Color3.new(0.067,0.067,0.067)
- Wedge_16.Material = Enum.Material.Slate
- Wedge_16.Size = Vector3.new(1.1,0.26,0.4)
- Wedge_16.Parent = Base
- WeldConstraint_17.Part0 = Wedge_16
- WeldConstraint_17.Part1 = Base_1
- WeldConstraint_17.Parent = Wedge_16
- Wedge_17.BottomSurface = Enum.SurfaceType.Smooth
- Wedge_17.CFrame = CFrame.new(35.435,47.348,-170.26,0,0,1,0,1,0,-1,0,0)
- Wedge_17.CanCollide = false
- Wedge_17.Color = Color3.new(0.067,0.067,0.067)
- Wedge_17.Material = Enum.Material.Slate
- Wedge_17.Size = Vector3.new(1.1,0.26,0.4)
- Wedge_17.Parent = Base
- WeldConstraint_18.Part0 = Wedge_17
- WeldConstraint_18.Part1 = Base_1
- WeldConstraint_18.Parent = Wedge_17
- Wedge_18.BottomSurface = Enum.SurfaceType.Smooth
- Wedge_18.CFrame = CFrame.new(35.434,46.2,-170.259,0,0,1,0,1,0,-1,0,0)
- Wedge_18.CanCollide = false
- Wedge_18.Color = Color3.new(0.067,0.067,0.067)
- Wedge_18.Material = Enum.Material.Slate
- Wedge_18.Size = Vector3.new(1.1,0.26,0.4)
- Wedge_18.Parent = Base
- WeldConstraint_19.Part0 = Wedge_18
- WeldConstraint_19.Part1 = Base_1
- WeldConstraint_19.Parent = Wedge_18
- Wedge_19.BottomSurface = Enum.SurfaceType.Smooth
- Wedge_19.CFrame = CFrame.new(35.434,47.037,-170.26,0,0,1,0,1,0,-1,0,0)
- Wedge_19.CanCollide = false
- Wedge_19.Color = Color3.new(0.067,0.067,0.067)
- Wedge_19.Material = Enum.Material.Slate
- Wedge_19.Size = Vector3.new(1.1,0.26,0.4)
- Wedge_19.Parent = Base
- WeldConstraint_20.Part0 = Wedge_19
- WeldConstraint_20.Part1 = Base_1
- WeldConstraint_20.Parent = Wedge_19
- Wedge_20.BottomSurface = Enum.SurfaceType.Smooth
- Wedge_20.CFrame = CFrame.new(35.435,46.442,-170.259,0,0,1,0,1,0,-1,0,0)
- Wedge_20.CanCollide = false
- Wedge_20.Color = Color3.new(0.067,0.067,0.067)
- Wedge_20.Material = Enum.Material.Slate
- Wedge_20.Size = Vector3.new(1.1,0.26,0.4)
- Wedge_20.Parent = Base
- WeldConstraint_21.Part0 = Wedge_20
- WeldConstraint_21.Part1 = Base_1
- WeldConstraint_21.Parent = Wedge_20
- Wedge_21.BottomSurface = Enum.SurfaceType.Smooth
- Wedge_21.CFrame = CFrame.new(35.434,47.894,-170.26,0,0,1,0,1,0,-1,0,0)
- Wedge_21.CanCollide = false
- Wedge_21.Color = Color3.new(0.067,0.067,0.067)
- Wedge_21.Material = Enum.Material.Slate
- Wedge_21.Size = Vector3.new(1.1,0.26,0.4)
- Wedge_21.Parent = Base
- WeldConstraint_22.Part0 = Wedge_21
- WeldConstraint_22.Part1 = Base_1
- WeldConstraint_22.Parent = Wedge_21
- wbtwe(Base_1, owner.Character["Torso"], CFrame.new(0, 0, 0))
- local song = Instance.new("Sound", owner.Character.Head)
- song.SoundId = "rbxassetid://149820574"
- song.Volume = 2
- song.Looped = true
- song:Play()
- idle = 0.1
- walk = 0.5
- mode = 1
- float = 1
- deb = false
- mouse.KeyDown:connect(function(k)
- if k == "q" then
- if deb == false then
- if mode == 1 then
- deb = true
- mode = mode +1
- local sound = Instance.new("Sound", owner.Character.Head)
- sound.SoundId = "rbxassetid://138186576"
- sound.Volume = 4
- sound:Play()
- song:Stop()
- song.SoundId = "rbxassetid://306431437"
- song:Play()
- wait(sound.TimeLength)
- Part.BrickColor = BrickColor.new("Really red")
- local exsound = Instance.new("Sound", owner.Character.Head)
- exsound.SoundId = "rbxassetid://539294959"
- exsound.Volume = 4
- exsound:Play()
- end
- if mode == 2 then
- deb = true
- mode = mode +1
- song:Stop()
- song.SoundId = "rbxassetid://436405140"
- song:Play()
- deb = false
- end
- Part.BrickColor = BrickColor.new("Bright yellow")
- if mode == 3 then
- deb = true
- mode = mode +1
- song:Stop()
- song.SoundId = "rbxassetid://1470848774"
- song:Play()
- Part.BrickColor = BrickColor.new("Royal purple")
- deb = false
- end
- end
- end
- end)
Add Comment
Please, Sign In to add comment