Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Rayfield = loadstring(game:HttpGet('https://raw.githubusercontent.com/shlexware/Rayfield/main/source'))()
- local Window = Rayfield:CreateWindow({
- Name = "DevHub",
- LoadingTitle = "DevHub",
- LoadingSubtitle = "by HevX",
- ConfigurationSaving = {
- Enabled = true,
- FolderName = nil, -- Create a custom folder for your hub/game
- FileName = "DevHub"
- },
- Discord = {
- Enabled = true,
- Invite = "ftMc57WuGd", -- The Discord invite code, do not include discord.gg/
- RememberJoins = true -- Set this to false to make them join the discord every time they load it up
- },
- KeySystem = false, -- Set this to true to use our key system
- KeySettings = {
- Title = "DevHub",
- Subtitle = "Key System",
- Note = "Welcome!",
- FileName = "Key",
- SaveKey = false,
- GrabKeyFromSite = false, -- If this is true, set Key below to the RAW site you would like Rayfield to get the key from
- Key = "s6v9y$B&E)H@McQfTjWnZq4t7w!z%C*F-JaNdRgUkXp2s5u8x/A?D(G+KbPeShVm"
- }
- })
- local Tab = Window:CreateTab("Tier 2", 4483362458) -- Title, Image
- local Section = Tab:CreateSection("Tier 2")
- local Button = Tab:CreateButton({
- Name = "Tuned Tyrota Cupra",
- Callback = function()
- -- Script generated by SimpleSpy - credits to exx#9394
- local args = {
- [1] = "[TIER 2] Tyrota cupra"
- }
- game:GetService("ReplicatedStorage").SpawnCar:FireServer(unpack(args))
- -- The function that takes place when the button is pressed
- end,
- })
- local Button = Tab:CreateButton({
- Name = "Tuned Sedan",
- Callback = function()
- -- Script generated by SimpleSpy - credits to exx#9394
- local args = {
- [1] = "[TIER 2] Sedan"
- }
- game:GetService("ReplicatedStorage").SpawnCar:FireServer(unpack(args))
- -- The function that takes place when the button is pressed
- end,
- })
- local Button = Tab:CreateButton({
- Name = "Tuned Cab",
- Callback = function()
- -- Script generated by SimpleSpy - credits to exx#9394
- local args = {
- [1] = "[TIER 2] Cab"
- }
- game:GetService("ReplicatedStorage").SpawnCar:FireServer(unpack(args))
- -- The function that takes place when the button is pressed
- end,
- })
- local Button = Tab:CreateButton({
- Name = "Protected Sedan",
- Callback = function()
- -- Script generated by SimpleSpy - credits to exx#9394
- local args = {
- [1] = "[TIER 2] Protected Sedan"
- }
- game:GetService("ReplicatedStorage").SpawnCar:FireServer(unpack(args))
- -- The function that takes place when the button is pressed
- end,
- })
- local Button = Tab:CreateButton({
- Name = "SWAT Station Truck",
- Callback = function()
- -- Script generated by SimpleSpy - credits to exx#9394
- local args = {
- [1] = "[TIER 2] SWAT truck"
- }
- game:GetService("ReplicatedStorage").SpawnCar:FireServer(unpack(args))
- -- The function that takes place when the button is pressed
- end,
- })
- local Button = Tab:CreateButton({
- Name = "Big Sedan",
- Callback = function()
- -- Script generated by SimpleSpy - credits to exx#9394
- local args = {
- [1] = "[TIER 2] Big Sedan"
- }
- game:GetService("ReplicatedStorage").SpawnCar:FireServer(unpack(args))
- -- The function that takes place when the button is pressed
- end,
- })
- local Button = Tab:CreateButton({
- Name = "Tuned Tyrota Chest",
- Callback = function()
- -- Script generated by SimpleSpy - credits to exx#9394
- local args = {
- [1] = "[TIER 2] Tyrota chest"
- }
- game:GetService("ReplicatedStorage").SpawnCar:FireServer(unpack(args))
- -- The function that takes place when the button is pressed
- end,
- })
- local Button = Tab:CreateButton({
- Name = "[NUKE] Fuel Truck",
- Callback = function()
- -- Script generated by SimpleSpy - credits to exx#9394
- local args = {
- [1] = "[TIER 2] Fuel truck"
- }
- game:GetService("ReplicatedStorage").SpawnCar:FireServer(unpack(args))
- -- The function that takes place when the button is pressed
- end,
- })
- local Button = Tab:CreateButton({
- Name = "Cherry Truck (2 Trailer)",
- Callback = function()
- -- Script generated by SimpleSpy - credits to exx#9394
- local args = {
- [1] = "[TIER 2] Truck trailer"
- }
- game:GetService("ReplicatedStorage").SpawnCar:FireServer(unpack(args))
- -- The function that takes place when the button is pressed
- end,
- })
- local Button = Tab:CreateButton({
- Name = "Armored Dodged Roger",
- Callback = function()
- -- Script generated by SimpleSpy - credits to exx#9394
- local args = {
- [1] = "[TIER 2] Dodged Roger"
- }
- game:GetService("ReplicatedStorage").SpawnCar:FireServer(unpack(args))
- -- The function that takes place when the button is pressed
- end,
- })
- local Button = Tab:CreateButton({
- Name = "Tuned Dirt Bike",
- Callback = function()
- -- Script generated by SimpleSpy - credits to exx#9394
- local args = {
- [1] = "[TIER 2] Dirt bike"
- }
- game:GetService("ReplicatedStorage").SpawnCar:FireServer(unpack(args))
- -- The function that takes place when the button is pressed
- end,
- })
- local Button = Tab:CreateButton({
- Name = "Tuned Cobra Simic",
- Callback = function()
- -- Script generated by SimpleSpy - credits to exx#9394
- local args = {
- [1] = "[TIER 2] Cobra Simic"
- }
- game:GetService("ReplicatedStorage").SpawnCar:FireServer(unpack(args))
- -- The function that takes place when the button is pressed
- end,
- })
- local Button = Tab:CreateButton({
- Name = "Tuned Lemon Door",
- Callback = function()
- -- Script generated by SimpleSpy - credits to exx#9394
- local args = {
- [1] = "[TIER 2] Lemon door"
- }
- game:GetService("ReplicatedStorage").SpawnCar:FireServer(unpack(args))
- -- The function that takes place when the button is pressed
- end,
- })
- local Button = Tab:CreateButton({
- Name = "Tuned Bus",
- Callback = function()
- -- Script generated by SimpleSpy - credits to exx#9394
- local args = {
- [1] = "[TIER 2] Bus"
- }
- game:GetService("ReplicatedStorage").SpawnCar:FireServer(unpack(args))
- -- The function that takes place when the button is pressed
- end,
- })
- local Tab = Window:CreateTab("Tier 3", 4483362458) -- Title, Image
- local Section = Tab:CreateSection("Tier 3")
- local Button = Tab:CreateButton({
- Name = "Mining Truck",
- Callback = function()
- -- Script generated by SimpleSpy - credits to exx#9394
- local args = {
- [1] = "[TIER 3] Mining truck"
- }
- game:GetService("ReplicatedStorage").SpawnCar:FireServer(unpack(args))
- -- The function that takes place when the button is pressed
- end,
- })
- local Button = Tab:CreateButton({
- Name = "ThrusterSSC",
- Callback = function()
- -- Script generated by SimpleSpy - credits to exx#9394
- local args = {
- [1] = "[TIER 3] ThrusterSSC"
- }
- game:GetService("ReplicatedStorage").SpawnCar:FireServer(unpack(args))
- -- The function that takes place when the button is pressed
- end,
- })
- local Button = Tab:CreateButton({
- Name = "Tank",
- Callback = function()
- -- Script generated by SimpleSpy - credits to exx#9394
- local args = {
- [1] = "[TIER 3] Tank"
- }
- game:GetService("ReplicatedStorage").SpawnCar:FireServer(unpack(args))
- -- The function that takes place when the button is pressed
- end,
- })
- local Tab = Window:CreateTab("Trolling", 4483362458) -- Title, Image
- local Section = Tab:CreateSection("Trolling")
- local Button = Tab:CreateButton({
- Name = "Telekinesis",
- Callback = function()
- -- Q & E - bring closer and further
- -- R - Roates Block
- -- T - Tilts Block
- -- Y - Throws Block
- local function a(b, c)
- local d = getfenv(c)
- local e =
- setmetatable(
- {},
- {__index = function(self, f)
- if f == "script" then
- return b
- else
- return d[f]
- end
- end}
- )
- setfenv(c, e)
- return c
- end
- local g = {}
- local h = Instance.new("Model", game:GetService("Lighting"))
- local i = Instance.new("Tool")
- local j = Instance.new("Part")
- local k = Instance.new("Script")
- local l = Instance.new("LocalScript")
- local m = sethiddenproperty or set_hidden_property
- i.Name = "Telekinesis"
- i.Parent = h
- i.Grip = CFrame.new(0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0)
- i.GripForward = Vector3.new(-0, -1, -0)
- i.GripRight = Vector3.new(0, 0, 1)
- i.GripUp = Vector3.new(1, 0, 0)
- j.Name = "Handle"
- j.Parent = i
- j.CFrame = CFrame.new(-17.2635937, 15.4915619, 46, 0, 1, 0, 1, 0, 0, 0, 0, -1)
- j.Orientation = Vector3.new(0, 180, 90)
- j.Position = Vector3.new(-17.2635937, 15.4915619, 46)
- j.Rotation = Vector3.new(-180, 0, -90)
- j.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- j.Transparency = 1
- j.Size = Vector3.new(1, 1.20000005, 1)
- j.BottomSurface = Enum.SurfaceType.Weld
- j.BrickColor = BrickColor.new("Really black")
- j.Material = Enum.Material.Metal
- j.TopSurface = Enum.SurfaceType.Smooth
- j.brickColor = BrickColor.new("Really black")
- k.Name = "LineConnect"
- k.Parent = i
- table.insert(
- g,
- a(
- k,
- function()
- wait()
- local n = script.Part2
- local o = script.Part1.Value
- local p = script.Part2.Value
- local q = script.Par.Value
- local color = script.Color
- local r = Instance.new("Part")
- r.TopSurface = 0
- r.BottomSurface = 0
- r.Reflectance = .5
- r.Name = "Laser"
- r.Locked = true
- r.CanCollide = false
- r.Anchored = true
- r.formFactor = 0
- r.Size = Vector3.new(1, 1, 1)
- local s = Instance.new("BlockMesh")
- s.Parent = r
- while true do
- if n.Value == nil then
- break
- end
- if o == nil or p == nil or q == nil then
- break
- end
- if o.Parent == nil or p.Parent == nil then
- break
- end
- if q.Parent == nil then
- break
- end
- local t = CFrame.new(o.Position, p.Position)
- local dist = (o.Position - p.Position).magnitude
- r.Parent = q
- r.BrickColor = color.Value.BrickColor
- r.Reflectance = color.Value.Reflectance
- r.Transparency = color.Value.Transparency
- r.CFrame = CFrame.new(o.Position + t.lookVector * dist / 2)
- r.CFrame = CFrame.new(r.Position, p.Position)
- s.Scale = Vector3.new(.25, .25, dist)
- wait()
- end
- r:remove()
- script:remove()
- end
- )
- )
- k.Disabled = true
- l.Name = "MainScript"
- l.Parent = i
- table.insert(
- g,
- a(
- l,
- function()
- wait()
- tool = script.Parent
- lineconnect = tool.LineConnect
- object = nil
- mousedown = false
- found = false
- BP = Instance.new("BodyPosition")
- BP.maxForce = Vector3.new(math.huge * math.huge, math.huge * math.huge, math.huge * math.huge)
- BP.P = BP.P * 1.1
- dist = nil
- point = Instance.new("Part")
- point.Locked = true
- point.Anchored = true
- point.formFactor = 0
- point.Shape = 0
- point.BrickColor = BrickColor.Black()
- point.Size = Vector3.new(1, 1, 1)
- point.CanCollide = false
- local s = Instance.new("SpecialMesh")
- s.MeshType = "Sphere"
- s.Scale = Vector3.new(.7, .7, .7)
- s.Parent = point
- handle = tool.Handle
- front = tool.Handle
- color = tool.Handle
- objval = nil
- local u = false
- local v = BP:clone()
- v.maxForce = Vector3.new(30000, 30000, 30000)
- function LineConnect(o, p, q)
- local w = Instance.new("ObjectValue")
- w.Value = o
- w.Name = "Part1"
- local x = Instance.new("ObjectValue")
- x.Value = p
- x.Name = "Part2"
- local y = Instance.new("ObjectValue")
- y.Value = q
- y.Name = "Par"
- local z = Instance.new("ObjectValue")
- z.Value = color
- z.Name = "Color"
- local A = lineconnect:clone()
- A.Disabled = false
- w.Parent = A
- x.Parent = A
- y.Parent = A
- z.Parent = A
- A.Parent = workspace
- if p == object then
- objval = x
- end
- end
- function onButton1Down(B)
- if mousedown == true then
- return
- end
- mousedown = true
- coroutine.resume(
- coroutine.create(
- function()
- local C = point:clone()
- C.Parent = tool
- LineConnect(front, C, workspace)
- while mousedown == true do
- C.Parent = tool
- if object == nil then
- if B.Target == nil then
- local t = CFrame.new(front.Position, B.Hit.p)
- C.CFrame = CFrame.new(front.Position + t.lookVector * 1000)
- else
- C.CFrame = CFrame.new(B.Hit.p)
- end
- else
- LineConnect(front, object, workspace)
- break
- end
- wait()
- end
- C:remove()
- end
- )
- )
- while mousedown == true do
- if B.Target ~= nil then
- local D = B.Target
- if D.Anchored == false then
- object = D
- dist = (object.Position - front.Position).magnitude
- break
- end
- end
- wait()
- end
- while mousedown == true do
- if object.Parent == nil then
- break
- end
- local t = CFrame.new(front.Position, B.Hit.p)
- BP.Parent = object
- BP.position = front.Position + t.lookVector * dist
- wait()
- end
- BP:remove()
- object = nil
- objval.Value = nil
- end
- function onKeyDown(E, B)
- local E = E:lower()
- local F = false
- if E == "q" then
- if dist >= 5 then
- dist = dist - 10
- end
- end
- if E == "r" then
- if object == nil then
- return
- end
- for G, H in pairs(object:children()) do
- if H.className == "BodyGyro" then
- return nil
- end
- end
- BG = Instance.new("BodyGyro")
- BG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
- BG.cframe = CFrame.new(object.CFrame.p)
- BG.Parent = object
- repeat
- wait()
- until object.CFrame == CFrame.new(object.CFrame.p)
- BG.Parent = nil
- if object == nil then
- return
- end
- for G, H in pairs(object:children()) do
- if H.className == "BodyGyro" then
- H.Parent = nil
- end
- end
- object.Velocity = Vector3.new(0, 0, 0)
- object.RotVelocity = Vector3.new(0, 0, 0)
- object.Orientation = Vector3.new(0, 0, 0)
- end
- if E == "e" then
- dist = dist + 10
- end
- if E == "t" then
- if dist ~= 10 then
- dist = 10
- end
- end
- if E == "y" then
- if dist ~= 200 then
- dist = 200
- end
- end
- if E == "=" then
- BP.P = BP.P * 1.5
- end
- if E == "-" then
- BP.P = BP.P * 0.5
- end
- end
- function onEquipped(B)
- keymouse = B
- local I = tool.Parent
- human = I.Humanoid
- human.Changed:connect(
- function()
- if human.Health == 0 then
- mousedown = false
- BP:remove()
- point:remove()
- tool:remove()
- end
- end
- )
- B.Button1Down:connect(
- function()
- onButton1Down(B)
- end
- )
- B.Button1Up:connect(
- function()
- mousedown = false
- end
- )
- B.KeyDown:connect(
- function(E)
- onKeyDown(E, B)
- end
- )
- B.Icon = "rbxasset://textures\\GunCursor.png"
- end
- tool.Equipped:connect(onEquipped)
- end
- )
- )
- for J, H in pairs(h:GetChildren()) do
- H.Parent = game:GetService("Players").LocalPlayer.Backpack
- pcall(
- function()
- H:MakeJoints()
- end
- )
- end
- h:Destroy()
- for J, H in pairs(g) do
- spawn(
- function()
- pcall(H)
- end
- )
- end
- Rayfield:Notify({
- Title = "Controls",
- Content = "Q and E = Bring Closer And Further / R = Rotate The Block / Y = Throws The Block",
- Duration = 50.5,
- Image = 4483362458,
- Actions = { -- Notification Buttons
- Ignore = {
- Name = "Okay!",
- Callback = function()
- print("The user tapped Okay!")
- end
- },
- },
- })
- -- The function that takes place when the button is pressed
- end,
- })
- local Paragraph = Tab:CreateParagraph({Title = "Will be added more soon!", Content = "Coming Soon..."})
- local Tab = Window:CreateTab("Misc", 4483362458) -- Title, Image
- local Section = Tab:CreateSection("Misc")
- local Slider = Tab:CreateSlider({
- Name = "Walkspeed",
- Range = {0, 150},
- Increment = 1,
- Suffix = "Walkspeed",
- CurrentValue = 16,
- Flag = "Slider1", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration saving to ensure no overlaps
- Callback = function(Value)
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = Value
- -- The function that takes place when the slider changes
- -- The variable (Value) is a number which correlates to the value the slider is currently at
- end,
- })
- local Button = Tab:CreateButton({
- Name = "Anti-AFK",
- Callback = function()
- local vu = game:GetService("VirtualUser")
- game:GetService("Players").LocalPlayer.Idled:connect(function()
- vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
- wait(1)
- vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
- end)
- -- The function that takes place when the button is pressed
- end,
- })
- local Button = Tab:CreateButton({
- Name = "Fly",
- Callback = function()
- repeat wait()
- until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
- local mouse = game.Players.LocalPlayer:GetMouse()
- repeat wait() until mouse
- local plr = game.Players.LocalPlayer
- local torso = plr.Character.Torso
- local flying = true
- local deb = true
- local ctrl = {f = 0, b = 0, l = 0, r = 0}
- local lastctrl = {f = 0, b = 0, l = 0, r = 0}
- local maxspeed = 50
- local speed = 0
- function Fly()
- local bg = Instance.new("BodyGyro", torso)
- bg.P = 9e4
- bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
- bg.cframe = torso.CFrame
- local bv = Instance.new("BodyVelocity", torso)
- bv.velocity = Vector3.new(0,0.1,0)
- bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
- repeat wait()
- plr.Character.Humanoid.PlatformStand = true
- if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
- speed = speed+.5+(speed/maxspeed)
- if speed > maxspeed then
- speed = maxspeed
- end
- elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
- speed = speed-1
- if speed < 0 then
- speed = 0
- end
- end
- if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
- bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
- lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
- elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
- bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
- else
- bv.velocity = Vector3.new(0,0.1,0)
- end
- bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
- until not flying
- ctrl = {f = 0, b = 0, l = 0, r = 0}
- lastctrl = {f = 0, b = 0, l = 0, r = 0}
- speed = 0
- bg:Destroy()
- bv:Destroy()
- plr.Character.Humanoid.PlatformStand = false
- end
- mouse.KeyDown:connect(function(key)
- if key:lower() == "e" then
- if flying then flying = false
- else
- flying = true
- Fly()
- end
- elseif key:lower() == "w" then
- ctrl.f = 1
- elseif key:lower() == "s" then
- ctrl.b = -1
- elseif key:lower() == "a" then
- ctrl.l = -1
- elseif key:lower() == "d" then
- ctrl.r = 1
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key:lower() == "w" then
- ctrl.f = 0
- elseif key:lower() == "s" then
- ctrl.b = 0
- elseif key:lower() == "a" then
- ctrl.l = 0
- elseif key:lower() == "d" then
- ctrl.r = 0
- end
- end)
- Fly()
- Rayfield:Notify({
- Title = "Notification",
- Content = "Press E to fly / unfly",
- Duration = 50.5,
- Image = 4483362458,
- Actions = { -- Notification Buttons
- Ignore = {
- Name = "Okay!",
- Callback = function()
- print("The user tapped Okay!")
- end
- },
- },
- })
- -- The function that takes place when the button is pressed
- end,
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement