View difference between Paste ID: yG9ZEsGc and faaynTrz
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
2
print(" this script was converted by An ignorant / zach ")
3
warn(" credits goes to the real creator ")
4
warn(" pls dont abuse ")
5
warn(" i beg u ")
6
local Player,game,owner = owner,game
7
local RealPlayer = Player
8
do
9
    print("FE Compatibility code by Mokiros")
10
    local rp = RealPlayer
11
    script.Parent = rp.Character
12
   
13
    --RemoteEvent for communicating
14
    local Event = Instance.new("RemoteEvent")
15
    Event.Name = "UserInput_Event"
16
 
17
    --Fake event to make stuff like Mouse.KeyDown work
18
    local function fakeEvent()
19
        local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
20
        t.connect = t.Connect
21
        return t
22
    end
23
 
24
    --Creating fake input objects with fake variables
25
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
26
    local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
27
    local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
28
        CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
29
    end}
30
    --Merged 2 functions into one by checking amount of arguments
31
    CAS.UnbindAction = CAS.BindAction
32
 
33
    --This function will trigger the events that have been :Connect()'ed
34
    local function te(self,ev,...)
35
        local t = m[ev]
36
        if t and t._fakeEvent then
37
            for _,f in pairs(t.Functions) do
38
                f(...)
39
            end
40
        end
41
    end
42
    m.TrigEvent = te
43
    UIS.TrigEvent = te
44
 
45
    Event.OnServerEvent:Connect(function(plr,io)
46
        if plr~=rp then return end
47
        m.Target = io.Target
48
        m.Hit = io.Hit
49
        if not io.isMouse then
50
            local b = io.UserInputState == Enum.UserInputState.Begin
51
            if io.UserInputType == Enum.UserInputType.MouseButton1 then
52
                return m:TrigEvent(b and "Button1Down" or "Button1Up")
53
            end
54
            for _,t in pairs(CAS.Actions) do
55
                for _,k in pairs(t.Keys) do
56
                    if k==io.KeyCode then
57
                        t.Function(t.Name,io.UserInputState,io)
58
                    end
59
                end
60
            end
61
            m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
62
            UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
63
        end
64
    end)
65
    Event.Parent = NLS([==[
66
    local Player = game:GetService("Players").LocalPlayer
67
    local Event = script:WaitForChild("UserInput_Event")
68
 
69
    local Mouse = Player:GetMouse()
70
    local UIS = game:GetService("UserInputService")
71
    local input = function(io,a)
72
        if a then return end
73
        --Since InputObject is a client-side instance, we create and pass table instead
74
        Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
75
    end
76
    UIS.InputBegan:Connect(input)
77
    UIS.InputEnded:Connect(input)
78
 
79
    local h,t
80
    --Give the server mouse data 30 times every second, but only if the values changed
81
    --If player is not moving their mouse, client won't fire events
82
    while wait(1/30) do
83
        if h~=Mouse.Hit or t~=Mouse.Target then
84
            h,t=Mouse.Hit,Mouse.Target
85
            Event:FireServer({isMouse=true,Target=t,Hit=h})
86
        end
87
    end]==],Player.Character)
88
 
89
    ----Sandboxed game object that allows the usage of client-side methods and services
90
    --Real game object
91
    local _rg = game
92
 
93
    --Metatable for fake service
94
    local fsmt = {
95
        __index = function(self,k)
96
            local s = rawget(self,"_RealService")
97
            if s then return s[k] end
98
        end,
99
        __newindex = function(self,k,v)
100
            local s = rawget(self,"_RealService")
101
            if s then s[k]=v end
102
        end,
103
        __call = function(self,...)
104
            local s = rawget(self,"_RealService")
105
            if s then return s(...) end
106
        end
107
    }
108
    local function FakeService(t,RealService)
109
        t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
110
        return setmetatable(t,fsmt)
111
    end
112
 
113
    --Fake game object
114
    local g = {
115
        GetService = function(self,s)
116
            return self[s]
117
        end,
118
        Players = FakeService({
119
            LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
120
        },"Players"),
121
        UserInputService = FakeService(UIS,"UserInputService"),
122
        ContextActionService = FakeService(CAS,"ContextActionService"),
123
    }
124
    rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
125
    g.service = g.GetService
126
   
127
    g.RunService = FakeService({
128
        RenderStepped = _rg:GetService("RunService").Heartbeat,
129
        BindToRenderStep = function(self,name,_,fun)
130
 
131
        end,
132
        UnbindFromRenderStep = function(self,name)
133
            self._btrs[name]:Disconnect()
134
        end,
135
    },"RunService")
136
 
137
    setmetatable(g,{
138
        __index=function(self,s)
139
            return _rg:GetService(s) or typeof(_rg[s])=="function"
140
            and function(_,...)return _rg[s](_rg,...)end or _rg[s]
141
        end,
142
        __newindex = fsmt.__newindex,
143
        __call = fsmt.__call
144
    })
145
    --Changing owner to fake player object to support owner:GetMouse()
146
    game,owner = g,g.Players.LocalPlayer
147
end
148
149
150
151
152
print('Guitar')
153
print('By slenercat5')
154
print('F to toggle Camera perspectives')--FANCY :D
155
Player=game.Players.LocalPlayer
156
Character=Player.Character
157
Character.Animate.Disabled=true
158
local LeftArm = Character["Left Arm"]
159
local RightArm = Character["Right Arm"]
160
local LeftLeg = Character["Left Leg"]
161
local RightLeg = Character["Right Leg"]
162
local Head = Character.Head
163
local Torso = Character.Torso
164
local Camera = game.Workspace.CurrentCamera	
165
local RootPart = Character.HumanoidRootPart
166
local RootJoint = RootPart.RootJoint
167
local Humanoid=Character.Humanoid
168
CAM=Camera
169
FF=Instance.new('ForceField',Character)
170
FF.Visible=false
171
Humanoid.Name='LOLOL YOU CANT HIT ME'
172
Character.
173
Health:remove()
174
for i,v in pairs (Humanoid:GetPlayingAnimationTracks()) do
175
    v:Stop()
176
end
177
178
local newMotor = function(part0, part1, c0, c1)
179
		 w = Instance.new('Motor')
180
		w.Parent = part0
181
		w.Part0 = part0
182
		w.Part1 = part1
183
		w.C0 = c0
184
		w.C1 = c1
185
	
186
	return w
187
end
188
189
190
191
192
RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
193
NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
194
195
local RW = newMotor(Torso, RightArm, CFrame.new(2.5, 0, 0), CFrame.new(0, 0, 0)) 
196
local LW = newMotor(Torso, LeftArm, CFrame.new(-2.5, 0, 0), CFrame.new(0, 0, 0))
197
local RH = newMotor(Torso, RightLeg, CFrame.new(1.5, -3, 0), CFrame.new(0, 0, 0))
198
local LH = newMotor(Torso, LeftLeg, CFrame.new(-1.5, -3, 0), CFrame.new(0, 0, 0))
199
RootJoint.C1 = CFrame.new(0, 0, 0)
200
RootJoint.C0 = CFrame.new(0, 0, 0)
201
Torso.Neck.C1 = CFrame.new(0, 0, 0)
202
Torso.Neck.C0 = CFrame.new(0, 2.5, 0)
203
204
local rarmc1 = RW.C1
205
local larmc1 = LW.C1
206
local rlegc1 = RH.C1
207
local llegc1 = LH.C1
208
209
local resetc1 = false
210
211
function clerp(a, b, t)
212
	return a:lerp(b, t)
213
end
214
function AutoWeld(Foop, OOF)
215
				local W = Instance.new("Weld")
216
				W.Part0 = Foop
217
				W.Part1 = OOF
218
				local CJ = CFrame.new(Foop.Position)
219
				local C0 = Foop.CFrame:inverse()*CJ
220
				local C1 = OOF.CFrame:inverse()*CJ
221
				W.C0 = C0
222
				W.C1 = C1
223
				W.Name='o0o'
224
				W.Parent = Foop
225
				
226
end
227
228
229
230
function PlayAnimationFromTable(table, speed, bool)
231
	RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) 
232
	Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) 
233
	RW.C0 = clerp(RW.C0, table[3], speed) 
234
	LW.C0 = clerp(LW.C0, table[4], speed) 
235
	RH.C0 = clerp(RH.C0, table[5], speed) 
236
	LH.C0 = clerp(LH.C0, table[6], speed) 
237
	if bool == true then
238
		if resetc1 == false then
239
			resetc1 = true
240
			RootJoint.C1 = RootJoint.C1
241
			Torso.Neck.C1 = Torso.Neck.C1
242
			RW.C1 = rarmc1
243
			LW.C1 = larmc1
244
			RH.C1 = rlegc1
245
			LH.C1 = llegc1
246
		end
247
	end
248
end
249
sine=1
250
251
Torso.CFrame=Torso.CFrame*CFrame.new(0,1,0)
252
253
254
Grass=Instance.new('Part',Character)
255
Grass.Name='Grass'
256
Grass.Anchored=true
257
Grass.Size=Vector3.new(11.42, 0.17, 17.6)
258
Grass.CFrame=Torso.CFrame*CFrame.new(-0.43, -3.905, -0.1)
259
Grass.Material='Grass'
260
Grass.BrickColor=BrickColor.new('Bright green')
261
m=Instance.new('CylinderMesh',Grass)
262
White=Instance.new('Part',Character)
263
White.Name='White Space'
264
White.Anchored=true
265
White.Size=Vector3.new(35.2, 0.05, 17.6)
266
White.CFrame=Torso.CFrame*CFrame.new(0.39, -3.965, -0.1)
267
White.Material='Neon'
268
White.BrickColor=BrickColor.new('Medium stone grey')
269
m=Instance.new('CylinderMesh',White)
270
271
272
Humanoid.AutoRotate=false
273
Humanoid.WalkSpeed=0
274
Humanoid.JumpPower=0
275
276
Flute=Instance.new('Part',Character)
277
Flute.Name='Flute'
278
Flute.CFrame=Torso.CFrame*CFrame.new(-0.5,-.5,-1)*CFrame.Angles(0,0,-2.5)
279
m=Instance.new('SpecialMesh',Flute)
280
m.MeshId='http://www.roblox.com/asset/?id=161269074'
281
m.TextureId='http://www.roblox.com/asset/?id=228874694'
282
m.Scale=Vector3.new(0.922, 0.922, 0.922)
283
Flute.Size=Vector3.new(.5,2,.5)
284
285
AutoWeld(Flute,Torso)
286
THEME=Instance.new('Sound',Character.Torso)
287
music=nil
288
firsttype=false
289
Player.Chatted:connect(function(msg)
290
for def in string.gmatch(msg, "%d+") do
291
			print(def)
292
293
if def~=nil then
294
	music=def
295
end	
296
	end
297
298
for def in string.gmatch(msg,"[%u%l%p]+") do
299
			print(def)
300
	if def=='Play/' and music~=nil then
301
		THEME:stop()
302
		THEME.SoundId='rbxassetid://'.. music
303
		THEME:play()
304
	elseif def=='Play/Demo' then
305
		THEME:stop()
306
		THEME.SoundId='rbxassetid://'.. 164167420
307
		THEME:play()
308
	elseif def=='S_Guitar' then
309
		THEME:stop()
310
	end
311
end
312
music=nil
313
end)
314
Ms=Player:GetMouse()
315
Ms.KeyDown:connect(function(key)
316
    if key=='f' then
317
	if cam then
318
		cam=false
319
		CAM.CameraType='Custom'
320
	else
321
		cam=true
322
		CAM.CameraType='Scriptable'
323
	end
324
end
325
end)
326
327
328
cam=true--Custom Camera Perspectives
329
if cam==true then 
330
	CAM.CameraType=Enum.CameraType.Scriptable
331
332
end
333
Campart1=Instance.new('Part',Character)
334
Campart1.Transparency=1
335
Campart1.Anchored=true
336
Campart1.CanCollide=false
337
Campart2=Campart1:clone()
338
Campart2.Parent=Character
339
Campart3=Campart1:clone()
340
Campart3.Parent=Character
341
342
camtime=0
343
camphase=0
344
345
while 1 do
346
wait()	
347
	sine=sine+1
348
			PlayAnimationFromTable({
349
				CFrame.new(-math.cos(sine/16)*.2, math.cos(sine/8)/8, 0) * CFrame.Angles(0, 0, 0), 
350
				CFrame.new(0, 1.5, 0) * CFrame.new(0, 0, -.3) * CFrame.Angles(-.5,0.5-THEME.PlaybackLoudness/150, 0), 
351
				CFrame.new(1.5-THEME.PlaybackLoudness/700, .5, -.5)*CFrame.Angles(1.5+THEME.PlaybackLoudness/700,0,0-THEME.PlaybackLoudness/700),  
352
				CFrame.new(-1.5+THEME.PlaybackLoudness/700, 0, -.5)*CFrame.Angles(1-THEME.PlaybackLoudness/700,0,0+THEME.PlaybackLoudness/700), 
353
				CFrame.new(1+math.cos(sine/16)*.2,-2-math.cos(sine/8)/8, 0)*CFrame.Angles(0,0,0.5) ,
354
				CFrame.new(-1+math.cos(sine/16)*.2,-2-math.cos(sine/8)/8,0)*CFrame.Angles(0,0,-0.5),
355
			}, .3, false)
356
			
357
White.Size=Vector3.new(35.2+THEME.PlaybackLoudness/10, 0.05, 17.6+THEME.PlaybackLoudness/10)
358
Campart1=Instance.new('Part')
359
if cam==true then
360
	CAM.CameraType='Scriptable'
361
Campart1.CFrame=Torso.CFrame*CFrame.new(8,8,8)*CFrame.Angles(-0.5,.5,-0.5)			
362
Campart2.CFrame=Torso.CFrame*CFrame.new(-8,-3,-5)*CFrame.Angles(-1,-2,-1)
363
Campart3.CFrame=Flute.CFrame*CFrame.new(1.5,0,-1)*CFrame.Angles(0,1.8,3)
364
if camphase==0 then
365
	if camtime<20+math.random(-2,2) then
366
				CAM.CFrame=Campart1.CFrame
367
		camtime=camtime+1
368
			else
369
		camtime=0
370
		camphase=camphase+1
371
	end	
372
elseif camphase==1 then
373
	if camtime<40+math.random(-8,12) then
374
				CAM.CFrame=Campart2.CFrame
375
		camtime=camtime+1
376
			else
377
		camtime=0
378
		camphase=camphase+1
379
	end
380
elseif camphase==2 then
381
	if camtime<50+math.random(-2,5) then
382
				CAM.CFrame=Campart3.CFrame
383
		camtime=camtime+1
384
	else
385
		camtime=0
386
		camphase=camphase+1
387
	end	
388
	
389
elseif camphase==3 then
390
	camphase=0
391
end
392
393
394
end
395
end