Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----// Raibow Ghost by vlad20020. \\----
- ----|| ||----
- ----\\Do not use with other scripts.//----
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,game,owner = owner,game
- local RealPlayer = Player
- do
- print("FE Compatibility code by Mokiros")
- 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
- m.Target = io.Target
- m.Hit = io.Hit
- if not io.isMouse then
- 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 Mouse = Player:GetMouse()
- 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,Hit=Mouse.Hit,Target=Mouse.Target})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- 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)
- local _rg = game
- local function FakeService(t,RealService)
- t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
- return setmetatable(t,{
- __index = function(self,k)
- local s = rawget(self,"_RealService")
- if s then return s[k] end
- end,
- __newindex = function(self,k,v)
- local s = rawget(self,"_RealService")
- if s then s[k]=v end
- end,
- })
- end
- local g = FakeService({
- GetService = function(self,s)
- return self[s]
- end,
- Players = FakeService({
- LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
- },"Players"),
- UserInputService = FakeService(UIS,"UserInputService"),
- ContextActionService = FakeService(CAS,"ContextActionService"),
- RunService = FakeService({RenderStepped=game:GetService("RunService").Heartbeat},"RunService")
- },game)
- rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
- getmetatable(g).__index=function(self,s)
- return _rg:GetService(s) or typeof(_rg[s])=="function"
- and function(_,...)return _rg[s](_rg,...)end or _rg[s]
- end
- game = g
- owner = g.Players.LocalPlayer
- end
- local plr = game:GetService("Players").LocalPlayer
- local char = plr.Character
- local la = char["Left Arm"]
- local ll = char["Left Leg"]
- local ra = char["Right Arm"]
- local rl = char["Right Leg"]
- local h = char.Head
- local t = char.Torso
- local hum = char.Humanoid
- local So = Instance.new("Sound", h)
- mouse = plr:GetMouse()
- hum.Changed:connect(function()
- hum.MaxHealth = 100 hum.Health = 100
- end)
- print('Made by vlad20020, for you '..plr.Name)
- warn"E = Invisiblity"
- So.Name = "GETDEFUCOUT"
- So.SoundId = "http://www.roblox.com/asset?id=885996042"
- So.Looped = true
- So.Volume = 1
- So:Play()
- me = Instance.new("SpecialMesh",t)
- me.MeshType = "Brick"
- me1 = Instance.new("SpecialMesh",ra)
- me1.MeshType = "Brick"
- me2 = Instance.new("SpecialMesh",la)
- me2.MeshType = "Brick"
- me3 = Instance.new("SpecialMesh",rl)
- me3.MeshType = "Brick"
- me4 = Instance.new("SpecialMesh",ll)
- me4.MeshType = "Brick"
- h.Size = Vector3.new(1,1,1)
- h.Mesh:Destroy()
- hum.DisplayDistanceType = "None"
- h.Transparency = .5
- t.Transparency = .5
- la.Transparency = .5
- ll.Transparency = .5
- rl.Transparency = .5
- ra.Transparency = .5
- hum.MaxHealth = math.huge
- hum.Health = math.huge
- hum.WalkSpeed = 100
- hum.JumpPower = 100
- ra.Material = "Neon"
- la.Material = "Neon"
- rl.Material = "Neon"
- ll.Material = "Neon"
- h.Material = "Neon"
- t.Material = "Neon"
- for _,v in pairs(h:GetChildren()) do
- if v:IsA("Decal") then
- v:Destroy()
- end
- end
- for _,v in pairs(char:GetChildren()) do
- if v:IsA("Accessory") then
- v:Destroy()
- end
- end
- mouse.KeyDown:connect(function(key)
- if key == "e" then
- h.Transparency = 0
- t.Transparency = 0
- ra.Transparency = 0
- la.Transparency = 0
- rl.Transparency = 0
- ll.Transparency = 0
- wait(.1)
- h.Transparency = 1
- t.Transparency = 1
- ra.Transparency = 1
- la.Transparency = 1
- rl.Transparency = 1
- ll.Transparency = 1
- h.CanCollide = false
- t.CanCollide = false
- ra.CanCollide = false
- la.CanCollide = false
- rl.CanCollide = false
- ll.CanCollide = false
- hum.WalkSpeed = 100
- hum.JumpPower = 150
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key == "e" then
- h.Transparency = 0
- h.Transparency = 0
- ra.Transparency = 0
- la.Transparency = 0
- rl.Transparency = 0
- ll.Transparency = 0
- wait(.1)
- t.Transparency = .5
- ra.Transparency = .5
- la.Transparency = .5
- rl.Transparency = .5
- ll.Transparency = .5
- h.Transparency = .5
- h.CanCollide = true
- t.CanCollide = true
- ra.CanCollide = true
- la.CanCollide = true
- rl.CanCollide = true
- ll.CanCollide = true
- hum.WalkSpeed = 50
- hum.JumpPower = 100
- end
- end)
- function onTouched(hit)
- hit:BreakJoints()
- end
- function kiss(hit1)
- hit1.Anchored = false
- end
- h.Touched:connect(onTouched)
- t.Touched:connect(onTouched)
- la.Touched:connect(onTouched)
- ra.Touched:connect(onTouched)
- ll.Touched:connect(onTouched)
- ra.Touched:connect(onTouched)
- t.Touched:connect(kiss)
- h.Touched:connect(kiss)
- ra.Touched:connect(kiss)
- la.Touched:connect(kiss)
- rs = char.Torso["Right Shoulder"]
- ls = char.Torso["Left Shoulder"]
- rh = char.Torso["Right Hip"]
- lh = char.Torso["Left Hip"]
- rut = char.HumanoidRootPart
- rutj = rut.RootJoint
- --------------------------
- local tweens = game:GetService("TweenService")
- local tweeni = TweenInfo.new(
- 1,
- Enum.EasingStyle.Linear,
- Enum.EasingDirection.InOut,
- 0,
- true,
- 0
- )
- local red = {Color = Color3.fromRGB(255,0,0)}
- local orange = {Color = Color3.fromRGB(255,160,0)}
- local yellow = {Color = Color3.fromRGB(255,255,0)}
- local green = {Color = Color3.fromRGB(0,255,0)}
- local cyan = {Color = Color3.fromRGB(0,255,255)}
- local blue = {Color = Color3.fromRGB(0,0,255)}
- local purple = {Color = Color3.fromRGB(100,0,255)}
- local tred = tweens:Create(h,tweeni,red)
- local tred1 = tweens:Create(t,tweeni,red)
- local tred2 = tweens:Create(ra,tweeni,red)
- local tred3 = tweens:Create(la,tweeni,red)
- local tred4 = tweens:Create(rl,tweeni,red)
- local tred5 = tweens:Create(ll,tweeni,red)
- local torange = tweens:Create(h,tweeni,orange)
- local torange1 = tweens:Create(t,tweeni,orange)
- local torange2 = tweens:Create(ra,tweeni,orange)
- local torange3 = tweens:Create(rl,tweeni,orange)
- local torange4 = tweens:Create(la,tweeni,orange)
- local torange5 = tweens:Create(ll,tweeni,orange)
- local tyellow = tweens:Create(h,tweeni,yellow)
- local tyellow1 = tweens:Create(t,tweeni,yellow)
- local tyellow2 = tweens:Create(ra,tweeni,yellow)
- local tyellow3 = tweens:Create(rl,tweeni,yellow)
- local tyellow4 = tweens:Create(la,tweeni,yellow)
- local tyellow5 = tweens:Create(ll,tweeni,yellow)
- local tgreen = tweens:Create(h,tweeni,green)
- local tgreen1 = tweens:Create(t,tweeni,green)
- local tgreen2 = tweens:Create(ra,tweeni,green)
- local tgreen3 = tweens:Create(rl,tweeni,green)
- local tgreen4 = tweens:Create(la,tweeni,green)
- local tgreen5 = tweens:Create(ll,tweeni,green)
- local tcyan = tweens:Create(h,tweeni,cyan)
- local tcyan1 = tweens:Create(t,tweeni,cyan)
- local tcyan2 = tweens:Create(ra,tweeni,cyan)
- local tcyan3 = tweens:Create(rl,tweeni,cyan)
- local tcyan4 = tweens:Create(la,tweeni,cyan)
- local tcyan5 = tweens:Create(ll,tweeni,cyan)
- local tblue = tweens:Create(h,tweeni,blue)
- local tblue1 = tweens:Create(t,tweeni,blue)
- local tblue2 = tweens:Create(ra,tweeni,blue)
- local tblue3 = tweens:Create(rl,tweeni,blue)
- local tblue4 = tweens:Create(la,tweeni,blue)
- local tblue5 = tweens:Create(ll,tweeni,blue)
- local tpurple = tweens:Create(h,tweeni,purple)
- local tpurple1 = tweens:Create(t,tweeni,purple)
- local tpurple2 = tweens:Create(ra,tweeni,purple)
- local tpurple3 = tweens:Create(rl,tweeni,purple)
- local tpurple4 = tweens:Create(la,tweeni,purple)
- local tpurple5 = tweens:Create(ll,tweeni,purple)
- while wait(1) do
- t.CanCollide = false
- h.CanCollide = false
- tred:Play()
- tred1:Play()
- tred2:Play()
- tred3:Play()
- tred4:Play()
- tred5:Play()
- wait(1)
- t.CanCollide = false
- h.CanCollide = false
- torange:Play()
- torange1:Play()
- torange2:Play()
- torange3:Play()
- torange4:Play()
- torange5:Play()
- wait(1)
- t.CanCollide = false
- h.CanCollide = false
- tyellow:Play()
- tyellow1:Play()
- tyellow2:Play()
- tyellow3:Play()
- tyellow4:Play()
- tyellow5:Play()
- wait(1)
- t.CanCollide = false
- h.CanCollide = false
- tgreen:Play()
- tgreen1:Play()
- tgreen2:Play()
- tgreen3:Play()
- tgreen4:Play()
- tgreen5:Play()
- wait(1)
- t.CanCollide = false
- h.CanCollide = false
- tcyan:Play()
- tcyan1:Play()
- tcyan2:Play()
- tcyan3:Play()
- tcyan4:Play()
- tcyan5:Play()
- wait(1)
- t.CanCollide = false
- h.CanCollide = false
- tblue:Play()
- tblue1:Play()
- tblue2:Play()
- tblue3:Play()
- tblue4:Play()
- tblue5:Play()
- wait(1)
- t.CanCollide = false
- h.CanCollide = false
- tpurple:Play()
- tpurple1:Play()
- tpurple2:Play()
- tpurple3:Play()
- tpurple4:Play()
- tpurple5:Play()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement