SHOW:
|
|
- or go back to the newest paste.
| 1 | - | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
|
| 1 | + | |
| 2 | - | local Player,Mouse,mouse,UserInputService,ContextActionService = owner |
| 2 | + | gui1.Parent= game.Workspace.Magermash.Head |
| 3 | - | do |
| 3 | + | gui1.Adornee= game.Workspace.Magermash.Head |
| 4 | - | print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
|
| 4 | + | |
| 5 | - | script.Parent = Player.Character |
| 5 | + | |
| 6 | gui1.AlwaysOnTop = true | |
| 7 | - | --RemoteEvent for communicating |
| 7 | + | |
| 8 | - | local Event = Instance.new("RemoteEvent")
|
| 8 | + | text1.Image = "http://www.roblox.com/asset/?id=157979926" --[[Face Image Source (If you wish to change the face to a different decal put it in there]] |
| 9 | - | Event.Name = "UserInput_Event" |
| 9 | + | |
| 10 | text1.Position=UDim2.new(0,0,0,0) | |
| 11 | - | --Fake event to make stuff like Mouse.KeyDown work |
| 11 | + | |
| 12 | - | local function fakeEvent() |
| 12 | + | |
| 13 | - | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
|
| 13 | + | |
| 14 | - | t.connect = t.Connect |
| 14 | + | |
| 15 | - | return t |
| 15 | + | |
| 16 | local p = game.Players.LocalPlayer | |
| 17 | local char = p.Character | |
| 18 | - | --Creating fake input objects with fake variables |
| 18 | + | |
| 19 | - | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
|
| 19 | + | |
| 20 | - | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
|
| 20 | + | |
| 21 | - | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
|
| 21 | + | |
| 22 | - | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
|
| 22 | + | |
| 23 | - | end} |
| 23 | + | |
| 24 | - | --Merged 2 functions into one by checking amount of arguments |
| 24 | + | |
| 25 | - | CAS.UnbindAction = CAS.BindAction |
| 25 | + | |
| 26 | weld.Part0 = torso | |
| 27 | - | --This function will trigger the events that have been :Connect()'ed |
| 27 | + | |
| 28 | - | local function te(self,ev,...) |
| 28 | + | |
| 29 | - | local t = m[ev] |
| 29 | + | |
| 30 | - | if t and t._fakeEvent and t.Function then |
| 30 | + | |
| 31 | - | t.Function(...) |
| 31 | + | |
| 32 | hed.Transparency = 1 | |
| 33 | torso.Transparency = 1 | |
| 34 | - | m.TrigEvent = te |
| 34 | + | |
| 35 | - | UIS.TrigEvent = te |
| 35 | + | |
| 36 | local train = Instance.new("Part",torso)
| |
| 37 | - | Event.OnServerEvent:Connect(function(plr,io) |
| 37 | + | |
| 38 | - | if plr~=Player then return end |
| 38 | + | |
| 39 | - | if io.isMouse then |
| 39 | + | |
| 40 | - | m.Target = io.Target |
| 40 | + | |
| 41 | - | m.Hit = io.Hit |
| 41 | + | |
| 42 | - | else |
| 42 | + | |
| 43 | - | local b = io.UserInputState == Enum.UserInputState.Begin |
| 43 | + | |
| 44 | - | if io.UserInputType == Enum.UserInputType.MouseButton1 then |
| 44 | + | |
| 45 | - | return m:TrigEvent(b and "Button1Down" or "Button1Up") |
| 45 | + | |
| 46 | TrainMesh.Scale = Vector3.new(0.60, 0.60, 0.60) | |
| 47 | - | for _,t in pairs(CAS.Actions) do |
| 47 | + | |
| 48 | - | for _,k in pairs(t.Keys) do |
| 48 | + | |
| 49 | - | if k==io.KeyCode then |
| 49 | + | |
| 50 | - | t.Function(t.Name,io.UserInputState,io) |
| 50 | + | hum.WalkSpeed = 140; |
| 51 | - | end |
| 51 | + | |
| 52 | ||
| 53 | for i,v in pairs(char:GetChildren()) do | |
| 54 | - | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) |
| 54 | + | |
| 55 | - | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) |
| 55 | + | |
| 56 | - | end |
| 56 | + | |
| 57 | - | end) |
| 57 | + | |
| 58 | - | Event.Parent = NLS([==[ |
| 58 | + | |
| 59 | - | local Player = game:GetService("Players").LocalPlayer
|
| 59 | + | |
| 60 | - | local Event = script:WaitForChild("UserInput_Event")
|
| 60 | + | |
| 61 | end | |
| 62 | - | local UIS = game:GetService("UserInputService")
|
| 62 | + | |
| 63 | - | local input = function(io,a) |
| 63 | + | |
| 64 | - | if a then return end |
| 64 | + | local function SFX(id) local s=Instance.new("Sound",torso); s.SoundId = "rbxassetid://"..id; s.Volume = 999; return s; end
|
| 65 | - | --Since InputObject is a client-side instance, we create and pass table instead |
| 65 | + | |
| 66 | - | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
|
| 66 | + | |
| 67 | if p.Parent:IsA("Model") then
| |
| 68 | - | UIS.InputBegan:Connect(input) |
| 68 | + | |
| 69 | - | UIS.InputEnded:Connect(input) |
| 69 | + | if p.Parent.Name ~= game.Players.LocalPlayer.Name then |
| 70 | game.Players:FindFirstChild(p.Parent.Name).Character:BreakJoints() | |
| 71 | - | local Mouse = Player:GetMouse() |
| 71 | + | |
| 72 | - | local h,t |
| 72 | + | |
| 73 | - | --Give the server mouse data 30 times every second, but only if the values changed |
| 73 | + | |
| 74 | - | --If player is not moving their mouse, client won't fire events |
| 74 | + | |
| 75 | - | while wait(1/30) do |
| 75 | + | |
| 76 | - | if h~=Mouse.Hit or t~=Mouse.Target then |
| 76 | + | |
| 77 | - | h,t=Mouse.Hit,Mouse.Target |
| 77 | + | |
| 78 | - | Event:FireServer({isMouse=true,Target=t,Hit=h})
|
| 78 | + | |
| 79 | local Music = SFX(149573450) | |
| 80 | - | end]==],Player.Character) |
| 80 | + | |
| 81 | - | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS |
| 81 | + | |
| 82 | Music:Play(); | |
| 83 | ||
| 84 | - | game.Players.THECREATOR20029.Character.Humanoid.MaxHealth = 99999999999 |
| 84 | + | |
| 85 | particleemitter.Texture = "http://www.roblox.com/asset/?id=0" | |
| 86 | - | game.Players.THECREATOR20029.Character.Humanoid.Health = 99999999999 |
| 86 | + | |
| 87 | particleemitter.Lifetime = NumberRange.new(5) | |
| 88 | particleemitter.Speed = NumberRange.new(6) | |
| 89 | particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5)})
| |
| 90 | particleemitter.RotSpeed = NumberRange.new(-55, 55) | |
| 91 | particleemitter.Rate = 150 | |
| 92 | particleemitter.Rotation = NumberRange.new(-55, 55) | |
| 93 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.7, 0.9), NumberSequenceKeypoint.new(1, 1)})
| |
| 94 | particleemitter.LightEmission = 0 | |
| 95 | particleemitter.Color = ColorSequence.new(Color3.new(255,255,255), Color3.new(255,255,255)) --Color here | |
| 96 | ||
| 97 | - | game.Players.THECREATOR20029.Character.Humanoid.JumpPower = 120 |
| 97 | + | |
| 98 | - | game.Players.THECREATOR20029.Character.Humanoid.WalkSpeed = 60 |
| 98 | + | |
| 99 | local plr = game.Players.LocalPlayer | |
| 100 | - | local hopperbintwo = Instance.new("HopperBin")
|
| 100 | + | |
| 101 | - | hopperbintwo.BinType = "Hammer" |
| 101 | + | |
| 102 | - | hopperbintwo.Parent = game.Players.THECREATOR20029.Backpack |
| 102 | + | |
| 103 | local lleg = chr["Left Leg"] | |
| 104 | - | local hopperbinthree = Instance.new("HopperBin")
|
| 104 | + | |
| 105 | - | hopperbinthree.BinType = "Clone" |
| 105 | + | |
| 106 | - | hopperbinthree.Parent = game.Players.THECREATOR20029.Backpack |
| 106 | + | |
| 107 | local hed = chr.Head | |
| 108 | local rutprt = chr.HumanoidRootPart | |
| 109 | - | gui1.Parent= game.Workspace.THECREATOR20029.Head |
| 109 | + | |
| 110 | - | gui1.Adornee= game.Workspace.THECREATOR20029.Head |
| 110 | + | |
| 111 | for i,x in pairs(pseudohead:GetChildren()) do if not x.ClassName:find('Mesh') then x:Destroy() end end
| |
| 112 | pseudohead.Name='PseudoHead' | |
| 113 | pseudohead.Parent=chr.Head | |
| 114 | local pseudoweld=Instance.new('Weld',torso)
| |
| 115 | - | text1.Image = "http://www.roblox.com/asset/?id=157979926" --[[210896183]] |
| 115 | + | |
| 116 | pseudoweld.Name='PseudoHeadWeld' | |
| 117 | pseudoweld.Part1=pseudohead | |
| 118 | hed.Transparency=1 | |
| 119 | for i,x in pairs(chr:GetChildren()) do | |
| 120 | if x:IsA'HHat' then x:destroy'' end end | |
| 121 | for i,x in pairs(chr:GetChildren()) do | |
| 122 | for a,v in pairs(x:GetChildren()) do | |
| 123 | - | local p = game.Players.THECREATOR20029 |
| 123 | + | |
| 124 | end | |
| 125 | end | |
| 126 | end | |
| 127 | ||
| 128 | -- Objects | |
| 129 | ||
| 130 | local ScreenGui = Instance.new("ScreenGui")
| |
| 131 | local TextButton = Instance.new("TextButton")
| |
| 132 | ||
| 133 | -- Properties | |
| 134 | ||
| 135 | ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui | |
| 136 | ||
| 137 | TextButton.Parent = ScreenGui | |
| 138 | TextButton.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 139 | TextButton.Size = UDim2.new(0, 200, 0, 50) | |
| 140 | TextButton.Font = Enum.Font.SourceSans | |
| 141 | TextButton.FontSize = Enum.FontSize.Size14 | |
| 142 | TextButton.Text = "step it up!!1!1" | |
| 143 | TextButton.TextSize = 14 | |
| 144 | ||
| 145 | --[[Function/s being made!]] | |
| 146 | function PlayMusic(ID) | |
| 147 | for i, v in pairs (game.Workspace:GetChildren()) do | |
| 148 | if v:IsA("Sound") then
| |
| 149 | end | |
| 150 | end | |
| 151 | local music = Instance.new("Sound")
| |
| 152 | local asset = "rbxassetid://" | |
| 153 | music.SoundId = asset .. ID | |
| 154 | music.Parent = workspace | |
| 155 | music.Volume = 999 | |
| 156 | music.Looped = false | |
| 157 | - | hum.WalkSpeed = 200; |
| 157 | + | |
| 158 | end | |
| 159 | --[[Connecting functions!]] | |
| 160 | TextButton.MouseButton1Down:connect(function() | |
| 161 | PlayMusic(136382097) | |
| 162 | end) | |
| 163 | ||
| 164 | --This is a localscript; you will need to have access to using scripts wherever you want this | |
| 165 | p = game:GetService('Players').LocalPlayer if p.Character then if p.Character:FindFirstChild('Humanoid') then p.Character.Humanoid.MaxHealth = math.huge end end |