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 | - | local debrs = game:GetService("Debris") |
2 | + | local Player,game,owner = owner,game |
3 | local RealPlayer = Player | |
4 | - | local ins = Instance.new |
4 | + | do |
5 | - | local v3 = Vector3.new |
5 | + | local rp = RealPlayer |
6 | - | local cf = CFrame.new |
6 | + | script.Parent = rp.Character |
7 | - | local angles = CFrame.Angles |
7 | + | |
8 | --RemoteEvent for communicating | |
9 | local Event = Instance.new("RemoteEvent") | |
10 | - | local cos = math.cos |
10 | + | Event.Name = "UserInput_Event" |
11 | - | local sin = math.sin |
11 | + | |
12 | - | local tan = math.tan |
12 | + | --Fake event to make stuff like Mouse.KeyDown work |
13 | - | local ray = Ray.new |
13 | + | local function fakeEvent() |
14 | - | local random = math.random |
14 | + | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} |
15 | - | local ud = UDim.new |
15 | + | t.connect = t.Connect |
16 | - | local ud2 = UDim2.new |
16 | + | return t |
17 | - | local c3 = Color3.new |
17 | + | |
18 | - | local rgb = Color3.fromRGB |
18 | + | |
19 | - | local bc = BrickColor.new |
19 | + | --Creating fake input objects with fake variables |
20 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
21 | - | local platformWidth = 50 |
21 | + | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} |
22 | - | local platfromHeight = 5 |
22 | + | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) |
23 | - | local cfpos = cf(0,200,1500)*cf(0,platfromHeight/2,0) |
23 | + | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil |
24 | - | local bcf = cf(30,0,-30) |
24 | + | end} |
25 | - | local material = "Cobblestone" |
25 | + | --Merged 2 functions into one by checking amount of arguments |
26 | - | local colors = {"Dark green","Black","Tr. Green","Earth green","Parsley green","Shamrock"} |
26 | + | CAS.UnbindAction = CAS.BindAction |
27 | - | local start = true |
27 | + | |
28 | - | local endd = false |
28 | + | --This function will trigger the events that have been :Connect()'ed |
29 | - | local curcolor |
29 | + | local function te(self,ev,...) |
30 | - | local startp |
30 | + | local t = m[ev] |
31 | - | local hitboxparts = {} |
31 | + | if t and t._fakeEvent then |
32 | for _,f in pairs(t.Functions) do | |
33 | - | local directions = {In = Enum.EasingDirection.In, |
33 | + | f(...) |
34 | - | Out = Enum.EasingDirection.Out, |
34 | + | |
35 | - | InOut = Enum.EasingDirection.InOut |
35 | + | |
36 | end | |
37 | - | local styles = {Linear = Enum.EasingStyle.Linear, |
37 | + | m.TrigEvent = te |
38 | - | Back = Enum.EasingStyle.Back, |
38 | + | UIS.TrigEvent = te |
39 | - | Bounce = Enum.EasingStyle.Bounce, |
39 | + | |
40 | - | Sine = Enum.EasingStyle.Sine, |
40 | + | Event.OnServerEvent:Connect(function(plr,io) |
41 | - | Quad = Enum.EasingStyle.Quad, |
41 | + | if plr~=rp then return end |
42 | - | Elastic = Enum.EasingStyle.Elastic, |
42 | + | m.Target = io.Target |
43 | - | Quart = Enum.EasingStyle.Quart, |
43 | + | m.Hit = io.Hit |
44 | - | Quint = Enum.EasingStyle.Quint |
44 | + | if not io.isMouse then |
45 | local b = io.UserInputState == Enum.UserInputState.Begin | |
46 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
47 | - | local mod = ins("Model",script) |
47 | + | return m:TrigEvent(b and "Button1Down" or "Button1Up") |
48 | end | |
49 | - | local tlerp = function(part,tablee,leinght,easingstyle,easingdirec) |
49 | + | for _,t in pairs(CAS.Actions) do |
50 | - | local info = TweenInfo.new( |
50 | + | for _,k in pairs(t.Keys) do |
51 | - | leinght, |
51 | + | if k==io.KeyCode then |
52 | - | easingstyle, |
52 | + | t.Function(t.Name,io.UserInputState,io) |
53 | - | easingdirec, |
53 | + | end |
54 | - | 0, |
54 | + | |
55 | - | false, |
55 | + | |
56 | - | 0 |
56 | + | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) |
57 | - | ) |
57 | + | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) |
58 | - | local lerp = tweens:Create(part,info,tablee) |
58 | + | |
59 | - | lerp:Play() |
59 | + | |
60 | Event.Parent = NLS([==[ | |
61 | - | function sound(parent,id,vol,pitch) |
61 | + | local Player = game:GetService("Players").LocalPlayer |
62 | - | pcall(function() |
62 | + | local Event = script:WaitForChild("UserInput_Event") |
63 | - | local sound = Instance.new("Sound",parent) |
63 | + | |
64 | - | sound.Volume = vol |
64 | + | local Mouse = Player:GetMouse() |
65 | - | sound.SoundId = "rbxassetid://"..id |
65 | + | local UIS = game:GetService("UserInputService") |
66 | - | sound.Pitch = pitch |
66 | + | local input = function(io,a) |
67 | - | sound:Play() |
67 | + | if a then return end |
68 | - | coroutine.resume(coroutine.create(function() |
68 | + | --Since InputObject is a client-side instance, we create and pass table instead |
69 | - | repeat |
69 | + | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) |
70 | - | wait() |
70 | + | |
71 | - | until sound.Playing == false |
71 | + | UIS.InputBegan:Connect(input) |
72 | - | sound:Destroy() |
72 | + | UIS.InputEnded:Connect(input) |
73 | - | end)) |
73 | + | |
74 | local h,t | |
75 | --Give the server mouse data 30 times every second, but only if the values changed | |
76 | - | function lesserfirepart(parttofire) |
76 | + | --If player is not moving their mouse, client won't fire events |
77 | - | coroutine.resume(coroutine.create(function() |
77 | + | while wait(1/30) do |
78 | - | for i = 1,random(6,12) do |
78 | + | if h~=Mouse.Hit or t~=Mouse.Target then |
79 | - | if not parttofire or not parttofire.Parent then |
79 | + | h,t=Mouse.Hit,Mouse.Target |
80 | - | break |
80 | + | Event:FireServer({isMouse=true,Target=t,Hit=h}) |
81 | end | |
82 | - | damagingfire(parttofire,effects,"Maroon","Deep orange",math.random(5,9)/5,math.random(2,5)/5,math.random(6,10)/12,"Neon",2,6,"Block",3,0,0,true,random(1,2)) |
82 | + | end]==],Player.Character) |
83 | - | wait(.25) |
83 | + | |
84 | ----Sandboxed game object that allows the usage of client-side methods and services | |
85 | - | end)) |
85 | + | --Real game object |
86 | local _rg = game | |
87 | - | function damagingfire(partp,parent,color1,color2,ssize,osize,leinght,material,minr,maxr,shape,spread,st,ot,onlyraise,damage) |
87 | + | |
88 | - | local deb = false |
88 | + | --Metatable for fake service |
89 | - | local part = Instance.new("Part",parent) part.Size = Vector3.new(ssize,ssize,ssize) part.Transparency = st part.CanCollide = false part.Anchored = true part.Shape = shape part.Material = material part.BrickColor = BrickColor.new(color1) part.CFrame = partp.CFrame * CFrame.new(partp.Size.x/math.random(-20,20),partp.Size.y/math.random(-20,20),partp.Size.z/math.random(-20,20)) |
89 | + | local fsmt = { |
90 | - | part.Name="FireP" |
90 | + | __index = function(self,k) |
91 | local s = rawget(self,"_RealService") | |
92 | - | part.CFrame = CFrame.new(part.CFrame.p,Vector3.new(part.Position.y,part.CFrame.y,part.CFrame.z)) |
92 | + | if s then return s[k] end |
93 | end, | |
94 | - | part.Touched:Connect(function(hit) |
94 | + | __newindex = function(self,k,v) |
95 | - | if not deb then |
95 | + | local s = rawget(self,"_RealService") |
96 | - | local newhum = hit.Parent:FindFirstChildOfClass("Humanoid") |
96 | + | if s then s[k]=v end |
97 | - | if newhum and newhum ~= hum then |
97 | + | end, |
98 | - | deb = false |
98 | + | __call = function(self,...) |
99 | - | local rand = random(1,6) |
99 | + | local s = rawget(self,"_RealService") |
100 | - | if rand == 3 then |
100 | + | if s then return s(...) end |
101 | - | lesserfirepart(hit) |
101 | + | |
102 | } | |
103 | - | newhum.Health = newhum.Health -damage |
103 | + | local function FakeService(t,RealService) |
104 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
105 | return setmetatable(t,fsmt) | |
106 | end | |
107 | - | local pcf = part.CFrame |
107 | + | |
108 | --Fake game object | |
109 | - | game:GetService("Debris"):AddItem(part,leinght) |
109 | + | local g = { |
110 | GetService = function(self,s) | |
111 | - | function msg(text,time) |
111 | + | return self[s] |
112 | - | local msg = ins("Hint",workspace) |
112 | + | end, |
113 | - | msg.Text = text |
113 | + | Players = FakeService({ |
114 | - | game:GetService("Debris"):AddItem(msg,time) |
114 | + | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) |
115 | },"Players"), | |
116 | - | function maketorch(pos,face) |
116 | + | UserInputService = FakeService(UIS,"UserInputService"), |
117 | - | local p = ins("Part",mod) |
117 | + | ContextActionService = FakeService(CAS,"ContextActionService"), |
118 | - | p.Material = "Wood" |
118 | + | } |
119 | - | p.BrickColor = bc("Brown") |
119 | + | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) |
120 | - | p.Anchored = true |
120 | + | g.service = g.GetService |
121 | - | p.Size = v3(.02,.06,.02)*platformWidth |
121 | + | |
122 | - | p.CFrame = pos |
122 | + | g.RunService = FakeService({ |
123 | - | local oldp = p |
123 | + | RenderStepped = _rg:GetService("RunService").Heartbeat, |
124 | - | local p = ins("Part",mod) |
124 | + | BindToRenderStep = function(self,name,_,fun) |
125 | - | p.Material = "Neon" |
125 | + | self._btrs[name] = self.Heartbeat:Connect(fun) |
126 | - | p.BrickColor = bc("CGA brown") |
126 | + | end, |
127 | - | p.Anchored = true |
127 | + | UnbindFromRenderStep = function(self,name) |
128 | - | p.Size = v3(.0225,.0225,.0225)*platformWidth |
128 | + | self._btrs[name]:Disconnect() |
129 | - | p.CFrame = oldp.CFrame*cf(0,oldp.Size.y/2+p.Size.y/2,0) |
129 | + | end, |
130 | - | local light = ins("SurfaceLight",p) |
130 | + | },"RunService") |
131 | - | light.Face = face |
131 | + | |
132 | - | light.Color = p.Color |
132 | + | setmetatable(g,{ |
133 | - | light.Angle = 180 |
133 | + | __index=function(self,s) |
134 | - | light.Range = 35 |
134 | + | return _rg:GetService(s) or typeof(_rg[s])=="function" |
135 | - | light.Brightness = 2.5 |
135 | + | and function(_,...)return _rg[s](_rg,...)end or _rg[s] |
136 | end, | |
137 | - | function tooltorch(who) |
137 | + | __newindex = fsmt.__newindex, |
138 | - | local tool = ins("Tool") |
138 | + | __call = fsmt.__call |
139 | - | tool.Name = "Torch" |
139 | + | }) |
140 | - | local p = ins("Part",tool) |
140 | + | --Changing owner to fake player object to support owner:GetMouse() |
141 | - | p.Material = "Wood" |
141 | + | game,owner = g,g.Players.LocalPlayer |
142 | - | p.BrickColor = bc("Brown") |
142 | + | |
143 | - | p.Anchored = false |
143 | + | local plr = game:GetService("Players").LocalPlayer |
144 | - | p.CanCollide = false |
144 | + | local plrg = plr.PlayerGui |
145 | - | p.Size = v3(.35,1.5,.35) |
145 | + | local mouse = plr:GetMouse() |
146 | - | p.Name = "Handle" |
146 | + | local char = plr.Character |
147 | - | p.CFrame = cf(0,1000,0) |
147 | + | local h = char:FindFirstChild("Head") |
148 | - | local oldp = p |
148 | + | local t = char:FindFirstChild("Torso") |
149 | - | local p = ins("Part",oldp) |
149 | + | local ra = char:FindFirstChild("Right Arm") |
150 | - | p.Material = "Neon" |
150 | + | local la = char:FindFirstChild("Left Arm") |
151 | - | p.BrickColor = bc("CGA brown") |
151 | + | local rl = char:FindFirstChild("Right Leg") |
152 | - | p.Anchored = false |
152 | + | local ll = char:FindFirstChild("Left Leg") |
153 | - | p.CanCollide = false |
153 | + | local rs = t:FindFirstChild("Right Shoulder") |
154 | - | p.Size = v3(.425,.425,.425) |
154 | + | local ls = t:FindFirstChild("Left Shoulder") |
155 | - | p.CFrame = oldp.CFrame*cf(0,oldp.Size.y/2+p.Size.y/2,0) |
155 | + | local rh = t:FindFirstChild("Right Hip") |
156 | - | local weld = ins("WeldConstraint",oldp) |
156 | + | local lh = t:FindFirstChild("Left Hip") |
157 | - | weld.Part0 = oldp |
157 | + | local nec = t.Neck |
158 | - | weld.Part1 = p |
158 | + | local rut = char.HumanoidRootPart |
159 | - | local light = ins("SurfaceLight",p) |
159 | + | local rutj = rut.RootJoint |
160 | - | light.Face = "Front" |
160 | + | local hum = char:FindFirstChildOfClass("Humanoid") |
161 | - | light.Color = p.Color |
161 | + | |
162 | - | light.Angle = 180 |
162 | + | local scr = Instance.new("ScreenGui",plrg) |
163 | - | light.Range = 20 |
163 | + | local bil = Instance.new("BillboardGui",char) bil.Name = "ChatFunc" bil.Adornee = h bil.Size = UDim2.new(1,0,1,0) bil.StudsOffset = Vector3.new(0,2,0) |
164 | - | light.Brightness = 4 |
164 | + | |
165 | - | local light = ins("SurfaceLight",p) |
165 | + | |
166 | - | light.Face = "Back" |
166 | + | local brcf = rutj.C0 |
167 | - | light.Color = p.Color |
167 | + | local trans = 1 |
168 | - | light.Angle = 180 |
168 | + | local trans1 = 0 |
169 | - | light.Range = 20 |
169 | + | local intros = 1.1 |
170 | - | light.Brightness = 4 |
170 | + | local intross = .6 |
171 | - | tool.Parent = who |
171 | + | local crnc = false |
172 | local mcro = false | |
173 | - | function maketrap(pos) |
173 | + | local ek = false |
174 | - | local p = ins("Part",mod) |
174 | + | local began = false |
175 | - | p.Material = "Slate" |
175 | + | local using = false |
176 | - | p.BrickColor = bc("Darkgrey") |
176 | + | local deb = true |
177 | - | p.Anchored = true |
177 | + | local deb1 = false |
178 | - | p.Size = v3(.15,.25,.15)*platformWidth |
178 | + | local defc0 = {nec.C0,rutj.C0,rs.C0,ls.C0,rh.C0,lh.C0} |
179 | - | p.CFrame = pos |
179 | + | local defc1 = {nec.C1,rutj.C1,rs.C1,ls.C1,rh.C1,lh.C1} |
180 | - | p.CanCollide = false |
180 | + | local rw = Instance.new("Weld",ra) rw.Part0 = ra rw.Part1 = nil rw.C1 = CFrame.new(1.5,.5,0) rw.C0 = CFrame.new(0,.5,0) |
181 | - | p.Name="Fire" |
181 | + | local lw = Instance.new("Weld",la) lw.Part0 = la lw.Part1 = nil lw.C1 = CFrame.new(-1.5,.5,0) lw.C0 = CFrame.new(0,.5,0) |
182 | - | local msh = ins("BlockMesh",p) |
182 | + | local punc = Instance.new("Sound",char) punc.Volume = 4 punc.SoundId = "rbxassetid://260430117" |
183 | - | msh.Scale = v3(.25,.01,.25) |
183 | + | local blob = Instance.new("Sound",workspace) blob.Volume = 4 blob.SoundId = "rbxassetid://264486467" |
184 | - | local deb = false |
184 | + | local ff = Instance.new("ForceField",char) ff.Visible = false |
185 | - | p.Touched:Connect(function(hit) |
185 | + | local hitb = Instance.new("Part",char) hitb.Size = Vector3.new(1.5,1.5,1.5) hitb.CanCollide = false hitb.Transparency = 1 |
186 | - | local hum = hit.Parent:FindFirstChildOfClass("Humanoid") |
186 | + | local weldo = Instance.new("Weld",hitb) weldo.Part0 = ra weldo.Part1 = hitb weldo.C0 = CFrame.new(0,-.5,0) |
187 | - | if hum and not deb then |
187 | + | local tlerp = function(inst,tablee,leinght,easingstyle,easingdirec) |
188 | local info = TweenInfo.new( | |
189 | - | sound(p,158853971,10,15) |
189 | + | leinght, |
190 | - | for i = 1,random(5,8) do |
190 | + | easingstyle, |
191 | - | damagingfire(p,mod,"Maroon","Deep orange",(math.random(6,10)/50)*platformWidth/2.5,.01,math.random(6,10)/10,"Neon",2*platformWidth/10,4*platformWidth/10,"Block",3,0,0,false,random(3,6)) |
191 | + | easingdirec, |
192 | - | wait() |
192 | + | 0, |
193 | false, | |
194 | - | wait(3.5) |
194 | + | 0 |
195 | - | deb = false |
195 | + | ) |
196 | local lerp = tweens:Create(inst,info,tablee) | |
197 | lerp:Play() | |
198 | end | |
199 | - | function rayc(spos,direc,ignore,dist) |
199 | + | function fling(hoo,direc,power) |
200 | - | local rai = ray(spos,direc.Unit * dist) |
200 | + | local endd = false |
201 | - | local rhit,rpos,rrot = workspace:FindPartOnRayWithIgnoreList(rai,ignore,false,false) |
201 | + | local vel = Instance.new("BodyVelocity",hoo) vel.MaxForce = Vector3.new(huge,huge,huge) vel.Velocity = direc * power |
202 | - | return rhit,rpos,rrot |
202 | + | coroutine.resume(coroutine.create(function() |
203 | wait(1) | |
204 | - | function createPlatform(cfr) |
204 | + | vel:Destroy() |
205 | - | local plat = ins("Part",mod) |
205 | + | wait(1) |
206 | - | plat.Anchored = true |
206 | + | if not endd then |
207 | - | plat.Size = v3(platformWidth,platfromHeight,platformWidth) |
207 | + | blob.TimePosition = .2 |
208 | - | plat.CFrame = cfr |
208 | + | blob:Play() |
209 | - | plat.Material = material |
209 | + | local expl = Instance.new("Explosion",workspace) expl.Position = hoo.Position |
210 | - | curcolor = bc(colors[random(1,#colors)]) |
210 | + | hoo.Parent:BreakJoints() |
211 | - | local rannum = random(1,2) |
211 | + | |
212 | - | if rannum == 2 and not start then |
212 | + | end)) |
213 | - | local xa = random(-10,10) |
213 | + | |
214 | - | local za = random(-10,10) |
214 | + | hoo.Touched:connect(function(hit) |
215 | - | if xa == 1 then |
215 | + | if not endd and hit.Parent ~= hoo.Parent and hit.Parent ~= char and hit.Name ~= "SuperFireEEE" then |
216 | - | xa = 2 |
216 | + | endd = true |
217 | - | elseif xa == -1 then |
217 | + | vel:Destroy() |
218 | - | xa = -2 |
218 | + | blob.TimePosition = .2 |
219 | blob:Play() | |
220 | - | if za == 1 then |
220 | + | local expl = Instance.new("Explosion",workspace) expl.Position = hoo.Position |
221 | - | za = 2 |
221 | + | hoo.Parent:BreakJoints() |
222 | - | elseif za == -1 then |
222 | + | |
223 | - | za = -2 |
223 | + | |
224 | end | |
225 | - | maketrap(plat.CFrame*cf(xa,plat.Size.y/2,za),tostring(plat.BrickColor)) |
225 | + | hitb.Touched:connect(function(hit) |
226 | if not deb and hit.Parent ~= char then | |
227 | - | if start then |
227 | + | if hit.Parent:FindFirstChild("Torso") ~= nil and hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil or hit.Parent:FindFirstChild("UpperTorso") ~= nil and hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then |
228 | - | plat.BrickColor = bc("Camo") |
228 | + | |
229 | - | local light = ins("SurfaceLight",plat) |
229 | + | punc:Play() |
230 | - | light.Face = "Top" |
230 | + | hit.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true |
231 | - | light.Color = plat.Color |
231 | + | local t = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") |
232 | - | light.Angle = 180 |
232 | + | local cf = CFrame.new(t.Position,mouse.Hit.p) |
233 | - | light.Range = plat.Size.z |
233 | + | for i = 1,math.random(3,5) do |
234 | - | light.Brightness = 2 |
234 | + | fire(t,char,"Maroon","Crimson",math.random(2,6)/math.random(8,12),.1,1.5,"SmoothPlastic",math.random(-1,1),1,"Block",math.random(15,25),0,.5,false) |
235 | - | local backb = ins("Part",plat) |
235 | + | |
236 | - | backb.Anchored = true |
236 | + | fling(t,cf.lookVector,400) |
237 | - | backb.CanCollide = false |
237 | + | |
238 | - | backb.Material = "Neon" |
238 | + | |
239 | - | backb.BrickColor = bc("CGA brown") |
239 | + | |
240 | - | backb.Size = v3(.1,.15,.1)*platformWidth |
240 | + | function fire(partp,parent,color1,color2,ssize,osize,leinght,material,minr,maxr,shape,spread,st,ot,onlyraise) |
241 | - | backb.CFrame = plat.CFrame * cf(plat.Size.x/3,plat.Size.y/2+backb.Size.y/2,plat.Size.z/3) |
241 | + | local part = Instance.new("Part",parent) part.Name = "SuperFireEEE" part.Size = Vector3.new(ssize,ssize,ssize) part.Transparency = st part.CanCollide = false part.Anchored = true part.Shape = shape part.Material = material part.BrickColor = BrickColor.new(color1) part.CFrame = partp.CFrame * CFrame.new(partp.Size.x/math.random(-20,20),partp.Size.y/math.random(-20,20),partp.Size.z/math.random(-20,20)) |
242 | - | backb.Transparency = .5 |
242 | + | |
243 | - | local p = ins("Part",plat) |
243 | + | part.CFrame = CFrame.new(part.CFrame.p,Vector3.new(nil,part.CFrame.y,part.CFrame.z)) |
244 | - | p.Material = "Neon" |
244 | + | else |
245 | - | p.BrickColor = bc("CGA brown") |
245 | + | |
246 | - | p.Anchored = true |
246 | + | |
247 | - | p.Size = v3(.025,.025,.025)*platformWidth |
247 | + | local pcf = part.CFrame |
248 | - | p.CFrame = plat.CFrame * cf(-plat.Size.x/7.5,(plat.Size.y/2)+p.Size.y/2,-plat.Size.z/7.5) |
248 | + | |
249 | - | p.CanCollide = false |
249 | + | game:GetService("Debris"):AddItem(part,leinght) |
250 | - | p.Transparency = .5 |
250 | + | |
251 | - | local billb = ins("BillboardGui",mod) |
251 | + | function PlusUltra() |
252 | - | billb.Adornee = p |
252 | + | using = true |
253 | - | billb.StudsOffset = Vector3.new(0,backb.Size.y/1.5,0) |
253 | + | rw.Part1 = t lw.Part1 = t |
254 | - | billb.Size = UDim2.new(4.5,0,1.5,0) |
254 | + | local tiem = .6 |
255 | - | billb.AlwaysOnTop = true |
255 | + | tlerp(rutj,{C0 = defc0[2] * CFrame.Angles(rad(-10),rad(0),rad(-30))},tiem,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut) |
256 | - | billb.MaxDistance = 20 |
256 | + | tlerp(nec,{C0 = defc0[1] * CFrame.Angles(rad(10),rad(0),rad(30))},tiem,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut) |
257 | - | local l = Instance.new("TextBox",billb) |
257 | + | tlerp(rw,{C0 = CFrame.new(0,.2,-.3) * CFrame.Angles(rad(-110),rad(20),rad(0))},tiem,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut) |
258 | - | l.Size = UDim2.new(1,0,1,0) |
258 | + | tlerp(lw,{C0 = CFrame.new(0,.9,0) * CFrame.Angles(rad(-80),rad(0),rad(40)) * CFrame.Angles(rad(0),rad(-40),rad(0))},tiem,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut) |
259 | - | l.BorderSizePixel = 0 |
259 | + | tlerp(rh,{C0 = defc0[5] * CFrame.Angles(rad(-5),rad(10),rad(-10))},tiem,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut) |
260 | - | l.BackgroundTransparency = 1 |
260 | + | tlerp(lh,{C0 = defc0[6] * CFrame.Angles(rad(-5),rad(10),rad(10))},tiem,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut) |
261 | - | l.TextScaled = true |
261 | + | wait(tiem) |
262 | - | l.Text = "Click to get the torch" |
262 | + | coroutine.resume(coroutine.create(function() |
263 | - | l.TextColor = bc("CGA brown") |
263 | + | for i = 1,7 do |
264 | - | l.Rotation = 0 |
264 | + | fire(ra,char,"White","Black",math.random(10,20)/math.random(8,12),.1,1.7,"Neon",math.random(7,9),math.random(12,15),"Block",math.random(13,20),math.random(3,6)/10,1,false) |
265 | - | l.TextStrokeTransparency = 0 |
265 | + | wait(.06) |
266 | - | l.TextStrokeColor3 = bc("CGA brown").Color |
266 | + | |
267 | - | local cld = ins("ClickDetector",p) |
267 | + | end)) |
268 | - | cld.MouseClick:Connect(function(plr) |
268 | + | deb = false |
269 | - | tooltorch(plr.Backpack) |
269 | + | tiem = .3 |
270 | - | end) |
270 | + | tlerp(rutj,{C0 = defc0[2] * CFrame.Angles(rad(10),rad(0),rad(60))},tiem,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut) |
271 | - | local billb = ins("BillboardGui",mod) |
271 | + | tlerp(nec,{C0 = defc0[1] * CFrame.Angles(rad(-10),rad(0),rad(-60))},tiem,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut) |
272 | - | billb.Adornee = backb |
272 | + | tlerp(rw,{C0 = CFrame.new(0,.8,-.3) * CFrame.Angles(rad(-115),rad(40),rad(20))},tiem,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut) |
273 | - | billb.StudsOffset = Vector3.new(0,backb.Size.y/1.5,0) |
273 | + | tlerp(lw,{C0 = CFrame.new(0,.3,0) * CFrame.Angles(rad(-80),rad(0),rad(20)) * CFrame.Angles(rad(0),rad(-40),rad(0))},tiem,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut) |
274 | - | billb.Size = UDim2.new(4.5,0,1.5,0) |
274 | + | tlerp(rh,{C0 = defc0[5] * CFrame.Angles(rad(-5),rad(10),rad(10))},tiem,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut) |
275 | - | billb.AlwaysOnTop = true |
275 | + | tlerp(lh,{C0 = defc0[6] * CFrame.Angles(rad(-5),rad(10),rad(-10))},tiem,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut) |
276 | - | billb.MaxDistance = 20 |
276 | + | wait(tiem) |
277 | - | local l = Instance.new("TextBox",billb) |
277 | + | deb = true |
278 | - | l.Size = UDim2.new(1,0,1,0) |
278 | + | tiem = .7 |
279 | - | l.BorderSizePixel = 0 |
279 | + | tlerp(rutj,{C0 = defc0[2]},tiem,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut) |
280 | - | l.BackgroundTransparency = 1 |
280 | + | tlerp(nec,{C0 = defc0[1]},tiem,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut) |
281 | - | l.TextScaled = true |
281 | + | tlerp(rw,{C0 = CFrame.new(0,.5,0)},tiem,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut) |
282 | - | l.Text = "Touch this part to get back to the baseplate" |
282 | + | tlerp(lw,{C0 = CFrame.new(0,.5,0)},tiem,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut) |
283 | - | l.TextColor = bc("CGA brown") |
283 | + | tlerp(rh,{C0 = defc0[5]},tiem,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut) |
284 | - | l.Rotation = 0 |
284 | + | tlerp(lh,{C0 = defc0[6]},tiem,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut) |
285 | - | l.TextStrokeTransparency = 0 |
285 | + | wait(tiem) |
286 | - | l.TextStrokeColor3 = bc("CGA brown").Color |
286 | + | using = false |
287 | - | backb.Touched:Connect(function(hit) |
287 | + | rw.Part1 = nil lw.Part1 = nil |
288 | - | local hum = hit.Parent:FindFirstChildOfClass("Humanoid") |
288 | + | |
289 | - | if hum then |
289 | + | mouse.KeyDown:connect(function(key) |
290 | - | local rut = hum.Parent:FindFirstChild("HumanoidRootPart") |
290 | + | if key == "e" and not using then |
291 | - | if rut then |
291 | + | PlusUltra() |
292 | - | rut.CFrame = cf(0,3,0) |
292 | + | |
293 | - | end |
293 | + | if key == "t" and hitb.Transparency == 1 then |
294 | hitb.Transparency = 0 | |
295 | - | end) |
295 | + | elseif key == "t" and hitb.Transparency == 0 then |
296 | - | elseif endd then |
296 | + | hitb.Transparency = 1 |
297 | - | plat.BrickColor = curcolor |
297 | + | |
298 | - | elseif not start and not endd then |
298 | + | end) --Script made by Pedrorb03 |
299 | - | plat.BrickColor = curcolor |
299 | + | growingList = {} |
300 | degrowingList = {} | |
301 | - | local cfs = { |
301 | + | |
302 | - | plat.CFrame *cf(plat.Size.x+0/5,0,0), |
302 | + | torso = Instance.new("Part") torso.Size = Vector3.new(0,0,0) torso.CanCollide = false |
303 | - | plat.CFrame *cf(-plat.Size.x-0/5,0,0), |
303 | + | torso.Anchored = true |
304 | - | plat.CFrame *cf(0,0,plat.Size.z+0/5), |
304 | + | local mesh = Instance.new("SpecialMesh",torso) mesh.MeshId = "rbxassetid://1198391230" mesh.TextureId = "rbxassetid://1198391349" mesh.Scale = Vector3.new(0.01,0.01,0.01) |
305 | - | plat.CFrame *cf(0,0,-plat.Size.z-0/5) |
305 | + | |
306 | - | } |
306 | + | arm = Instance.new("Part") arm.Size = Vector3.new(0,0,0) arm.CanCollide = false |
307 | - | if endd then |
307 | + | arm.Anchored = true |
308 | - | local rew = ins("Part",plat) |
308 | + | local mesh = Instance.new("SpecialMesh",arm) mesh.MeshId = "rbxassetid://1198392540" mesh.TextureId = "rbxassetid://1198391349" mesh.Scale = Vector3.new(0.02,0.02,0.02) |
309 | - | rew.Anchored = true |
309 | + | |
310 | - | rew.Material = "Glass" |
310 | + | leg1 = Instance.new("Part") leg1.Size = Vector3.new(0,0,0) leg1.CanCollide = false |
311 | - | rew.BrickColor = bc("Gold") |
311 | + | leg1.Anchored = true |
312 | - | rew.Size = v3(.05,.05,.05)*platformWidth |
312 | + | local mesh = Instance.new("SpecialMesh",leg1) mesh.MeshId = "rbxassetid://1198394446" mesh.TextureId = "rbxassetid://1198391349" mesh.Scale = Vector3.new(0.01,0.01,0.01) |
313 | - | rew.CFrame = plat.CFrame * cf(0,(rew.Size.y/2)+plat.Size.y/2,0) |
313 | + | |
314 | - | rew.Name = random(-999999,999999) |
314 | + | leg2 = Instance.new("Part") leg2.Size = Vector3.new(0,0,0) leg2.CanCollide = false |
315 | - | print(rew.Name) |
315 | + | leg2.Anchored = true |
316 | - | local light = ins("SurfaceLight",rew) |
316 | + | local mesh = Instance.new("SpecialMesh",leg2) mesh.MeshId = "rbxassetid://1198393506" mesh.TextureId = "rbxassetid://1198391349" mesh.Scale = Vector3.new(0.02,0.02,0.02) |
317 | - | light.Face = "Top" |
317 | + | |
318 | - | light.Color = rew.Color |
318 | + | headd = Instance.new("Part") headd.Size = Vector3.new(1,1,1) headd.CanCollide = false |
319 | - | light.Angle = 180 |
319 | + | local mesh = Instance.new("SpecialMesh",headd) mesh.Scale = Vector3.new(1.25,1.25,1.25) mesh.MeshType = Enum.MeshType.Head |
320 | - | light.Range = 30 |
320 | + | headd.BrickColor = BrickColor.new("Pastel brown") |
321 | - | light.Brightness = 3 |
321 | + | |
322 | - | local deb = false |
322 | + | game:GetService("RunService").RenderStepped:connect(function() |
323 | - | rew.Touched:Connect(function(hit) |
323 | + | for _,grow in pairs(growingList) do |
324 | - | local hum = hit.Parent:FindFirstChildOfClass("Humanoid") |
324 | + | local cframe = grow.CFrame |
325 | - | if hum then |
325 | + | grow.Size = grow.Size+Vector3.new(1,1,1) |
326 | - | local rut = hum.Parent:FindFirstChild("HumanoidRootPart") |
326 | + | grow.Transparency = grow.Transparency+0.04 |
327 | - | if rut and not deb then |
327 | + | |
328 | - | deb = true |
328 | + | for _,degrow in pairs(degrowingList) do |
329 | - | hum.Health = hum.MaxHealth |
329 | + | local cframe = degrow.CFrame |
330 | - | sound(workspace,160737154,2,1) |
330 | + | degrow.Size = degrow.Size-Vector3.new(1,1,1) |
331 | - | msg(hum.Parent.Name.." found the gold block!",3) |
331 | + | degrow.Transparency = degrow.Transparency+0.04 |
332 | - | gen() |
332 | + | |
333 | - | rut.CFrame = startp.CFrame * cf(0,3,0) |
333 | + | |
334 | - | end |
334 | + | |
335 | ||
336 | - | end) |
336 | + | |
337 | ||
338 | - | local safepart = ins("Part",plat) |
338 | + | Basesong = Instance.new("Sound") |
339 | - | safepart.Anchored = true |
339 | + | |
340 | - | safepart.Material = plat.Material |
340 | + | hair = Instance.new("Part",game.Players.LocalPlayer.Character) hair.Size = Vector3.new(1,1,1) hair.CanCollide = false |
341 | - | safepart.Color = plat.Color |
341 | + | |
342 | - | safepart.Size = v3(20*platformWidth,5,20*platformWidth) |
342 | + | beforesong = Basesong:Clone() |
343 | - | safepart.CFrame = cfpos * cf(0,-plat.Size.y/2-(safepart.Size.y/2),0) |
343 | + | beforesong.Parent = game.Players.LocalPlayer.Character |
344 | - | safepart.CanCollide = false |
344 | + | beforesong.Looped = true |
345 | - | safepart.Transparency = 1 |
345 | + | beforesong.Volume = 3 |
346 | - | safepart.Touched:Connect(function(hit) |
346 | + | beforesong.SoundId = "rbxassetid://1100971847" |
347 | - | local hum = hit.Parent:FindFirstChildOfClass("Humanoid") |
347 | + | beforesong:Play() |
348 | - | if hum then |
348 | + | |
349 | - | local rut = hum.Parent:FindFirstChild("HumanoidRootPart") |
349 | + | if game.Players.LocalPlayer.Character:FindFirstChild("Body Colors") then |
350 | - | if rut then |
350 | + | game.Players.LocalPlayer.Character["Body Colors"]:remove() |
351 | - | rut.CFrame = startp.CFrame * cf(0,3,0) |
351 | + | |
352 | if game.Players.LocalPlayer.Character:FindFirstChild("Shirt Graphic") then | |
353 | game.Players.LocalPlayer.Character["Shirt Graphic"]:remove() | |
354 | end | |
355 | - | local ruf = ins("Part",plat) |
355 | + | if game.Players.LocalPlayer.Character:FindFirstChild("Shirt") then |
356 | - | ruf.Anchored = true |
356 | + | game.Players.LocalPlayer.Character["Shirt"]:remove() |
357 | - | ruf.Material = plat.Material |
357 | + | |
358 | - | ruf.Color = plat.Color |
358 | + | if game.Players.LocalPlayer.Character:FindFirstChild("Pants") then |
359 | - | ruf.Size = plat.Size |
359 | + | game.Players.LocalPlayer.Character["Pants"]:remove() |
360 | - | ruf.CFrame = plat.CFrame * cf(0,(.75*platformWidth)+plat.Size.y,0) |
360 | + | |
361 | - | local dp = ins("Part",plat) |
361 | + | for i=1,5 do |
362 | - | dp.Anchored = true |
362 | + | wait() |
363 | - | dp.CanCollide = false |
363 | + | for _,hat in pairs(game.Players.LocalPlayer.Character:GetChildren()) do |
364 | - | dp.Transparency = 1 |
364 | + | if hat.ClassName == "Accessory" then |
365 | - | dp.Material = plat.Material |
365 | + | hat:remove() |
366 | - | dp.Color = plat.Color |
366 | + | |
367 | - | dp.Size = v3(1,.75,1)*platformWidth |
367 | + | if hat:IsA("BasePart") then |
368 | - | dp.CFrame = plat.CFrame * cf(0,(dp.Size.y/2)+(plat.Size.y/2),0) |
368 | + | hat.BrickColor = BrickColor.new("Pastel brown") |
369 | - | dp.Name = random(-999999,999999) |
369 | + | |
370 | - | dp.Touched:Connect(function(hit) |
370 | + | |
371 | - | local hum = hit.Parent:FindFirstChildOfClass("Humanoid") |
371 | + | |
372 | - | if hum then |
372 | + | game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0 |
373 | - | if hum.WalkSpeed >16 then |
373 | + | game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0 |
374 | - | hum.Parent:BreakJoints() |
374 | + | |
375 | ||
376 | Basepart = Instance.new("Part") | |
377 | ||
378 | - | table.insert(hitboxparts,dp) |
378 | + | |
379 | - | local pil = ins("Part",plat) |
379 | + | Baseparticle = Instance.new("ParticleEmitter") |
380 | - | pil.Anchored = true |
380 | + | Basemesh = Instance.new("SpecialMesh") |
381 | - | pil.Material = plat.Material |
381 | + | local mesh = Basemesh:Clone() |
382 | - | pil.Color = plat.Color |
382 | + | mesh.Parent = hair |
383 | - | pil.Size = v3(.15,.75,.15)*platformWidth |
383 | + | mesh.MeshId = "rbxassetid://1143041061" |
384 | - | pil.CFrame = plat.CFrame * cf(plat.Size.x/2-pil.Size.x/2,pil.Size.y/2+plat.Size.y/2,plat.Size.z/2-pil.Size.z/2) |
384 | + | Baseweld = Instance.new("Weld") |
385 | - | local pw = ins("Part",plat) |
385 | + | local weld = Baseweld:Clone() |
386 | - | pw.Anchored = true |
386 | + | weld.Part0 = hair |
387 | - | pw.Material = plat.Material |
387 | + | weld.Part1 = game.Players.LocalPlayer.Character.Head |
388 | - | pw.Color = plat.Color |
388 | + | hair.Color = Color3.fromRGB(153, 125, 61) |
389 | - | pw.Size = v3(.15,.75,.2)*platformWidth |
389 | + | weld.C0 = CFrame.new(0,-0.25,0)*CFrame.Angles(0,math.rad(180),0) |
390 | - | pw.CFrame = pil.CFrame * cf(0,0,-pw.Size.z/2-pil.Size.z/2) |
390 | + | weld.Parent = hair |
391 | - | local pw = ins("Part",plat) |
391 | + | |
392 | - | pw.Anchored = true |
392 | + | shirt = Instance.new("Shirt",game.Players.LocalPlayer.Character) |
393 | - | pw.Material = plat.Material |
393 | + | shirt.ShirtTemplate = "rbxassetid://804894303" |
394 | - | pw.Color = plat.Color |
394 | + | pants = Instance.new("Pants",game.Players.LocalPlayer.Character) |
395 | - | pw.Size = v3(.2,.75,.15)*platformWidth |
395 | + | pants.PantsTemplate = "rbxassetid://189943600" |
396 | - | pw.CFrame = pil.CFrame * cf(-pw.Size.x/2-pil.Size.x/2,0,0) |
396 | + | |
397 | - | local pil = ins("Part",plat) |
397 | + | game.Players.LocalPlayer.Character.Head.face.Texture = "http://www.roblox.com/asset/?id=1142979747" |
398 | - | pil.Anchored = true |
398 | + | |
399 | - | pil.Material = plat.Material |
399 | + | wait(1) |
400 | - | pil.Color = plat.Color |
400 | + | game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character.Head, "This can go two ways punk", "Green") |
401 | - | pil.Size = v3(.15,.75,.15)*platformWidth |
401 | + | wait(3) |
402 | - | pil.CFrame = plat.CFrame * cf(-plat.Size.x/2+pil.Size.x/2,pil.Size.y/2+plat.Size.y/2,-plat.Size.z/2+pil.Size.z/2) |
402 | + | game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character.Head, "You walk away", "Green") |
403 | - | local pw = ins("Part",plat) |
403 | + | wait(3) |
404 | - | pw.Anchored = true |
404 | + | game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character.Head, "Or I walk in your, face.", "Green") |
405 | - | pw.Material = plat.Material |
405 | + | wait(3) |
406 | - | pw.Color = plat.Color |
406 | + | |
407 | - | pw.Size = v3(.15,.75,.2)*platformWidth |
407 | + | local counter = 0 |
408 | - | pw.CFrame = pil.CFrame * cf(0,0,pw.Size.z/2+pil.Size.z/2) |
408 | + | |
409 | - | local pw = ins("Part",plat) |
409 | + | for i=1,200 do |
410 | - | pw.Anchored = true |
410 | + | wait() |
411 | - | pw.Material = plat.Material |
411 | + | counter = counter+1 |
412 | - | pw.Color = plat.Color |
412 | + | if counter > 2 then |
413 | - | pw.Size = v3(.2,.75,.15)*platformWidth |
413 | + | counter = 0 |
414 | - | pw.CFrame = pil.CFrame * cf(pw.Size.x/2+pil.Size.x/2,0,0) |
414 | + | local part = Basepart:Clone() |
415 | - | local pil = ins("Part",plat) |
415 | + | part.Color = Color3.fromRGB(255,175,0) |
416 | - | pil.Anchored = true |
416 | + | part.Shape = Enum.PartType.Cylinder |
417 | - | pil.Material = plat.Material |
417 | + | part.Anchored = true |
418 | - | pil.Color = plat.Color |
418 | + | part.CanCollide = false |
419 | - | pil.Size = v3(.15,.75,.15)*platformWidth |
419 | + | part.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) |
420 | - | pil.CFrame = plat.CFrame * cf(-plat.Size.x/2+pil.Size.x/2,pil.Size.y/2+plat.Size.y/2,plat.Size.z/2-pil.Size.z/2) |
420 | + | part.Parent = game.Workspace |
421 | - | local pw = ins("Part",plat) |
421 | + | part.Material = Enum.Material.Neon |
422 | - | pw.Anchored = true |
422 | + | part.Size = Vector3.new(1000000000,6,6) |
423 | - | pw.Material = plat.Material |
423 | + | |
424 | - | pw.Color = plat.Color |
424 | + | game:GetService("Debris"):AddItem(part,1) |
425 | - | pw.Size = v3(.15,.75,.2)*platformWidth |
425 | + | table.insert(degrowingList,part) |
426 | - | pw.CFrame = pil.CFrame * cf(0,0,-pw.Size.z/2-pil.Size.z/2) |
426 | + | local part = Basepart:Clone() |
427 | - | local pw = ins("Part",plat) |
427 | + | part.Color = Color3.fromRGB(255,175,0) |
428 | - | pw.Anchored = true |
428 | + | part.Shape = Enum.PartType.Ball |
429 | - | pw.Material = plat.Material |
429 | + | part.Anchored = true |
430 | - | pw.Color = plat.Color |
430 | + | part.CanCollide = false |
431 | - | pw.Size = v3(.2,.75,.15)*platformWidth |
431 | + | part.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame |
432 | - | pw.CFrame = pil.CFrame * cf(pw.Size.x/2+pil.Size.x/2,0,0) |
432 | + | part.Parent = game.Workspace |
433 | - | local pil = ins("Part",plat) |
433 | + | part.Material = Enum.Material.Neon |
434 | - | pil.Anchored = true |
434 | + | part.Size = Vector3.new(1,1,1) |
435 | - | pil.Material = plat.Material |
435 | + | game:GetService("Debris"):AddItem(part,3) |
436 | - | pil.Color = plat.Color |
436 | + | table.insert(growingList,part) |
437 | - | pil.Size = v3(.15,.75,.15)*platformWidth |
437 | + | |
438 | - | pil.CFrame = plat.CFrame * cf(plat.Size.x/2-pil.Size.x/2,pil.Size.y/2+plat.Size.y/2,-plat.Size.z/2+pil.Size.z/2) |
438 | + | |
439 | - | local pw = ins("Part",plat) |
439 | + | for _,player in pairs(game.Workspace:GetChildren()) do |
440 | - | pw.Anchored = true |
440 | + | if player:FindFirstChild("Humanoid") then |
441 | - | pw.Material = plat.Material |
441 | + | player.Humanoid.CameraOffset = Vector3.new(math.random(-2,2),math.random(-2,2),0) |
442 | - | pw.Color = plat.Color |
442 | + | |
443 | - | pw.Size = v3(.15,.75,.2)*platformWidth |
443 | + | |
444 | - | pw.CFrame = pil.CFrame * cf(0,0,pw.Size.z/2+pil.Size.z/2) |
444 | + | |
445 | - | local pw = ins("Part",plat) |
445 | + | |
446 | - | pw.Anchored = true |
446 | + | |
447 | - | pw.Material = plat.Material |
447 | + | counter = counter+1 |
448 | - | pw.Color = plat.Color |
448 | + | for _,player in pairs(game.Workspace:GetChildren()) do |
449 | - | pw.Size = v3(.2,.75,.15)*platformWidth |
449 | + | if player:FindFirstChild("Humanoid") then |
450 | - | pw.CFrame = pil.CFrame * cf(-pw.Size.x/2-pil.Size.x/2,0,0) |
450 | + | player.Humanoid.CameraOffset = Vector3.new(0,0,0) |
451 | - | start = false |
451 | + | |
452 | - | endd = false |
452 | + | |
453 | - | return cfs,plat |
453 | + | |
454 | end | |
455 | - | function gen() |
455 | + | local colorlist = {ColorSequenceKeypoint.new(0,Color3.fromRGB(0,255,255)), |
456 | - | hitboxparts = {} |
456 | + | ColorSequenceKeypoint.new(0.148,Color3.fromRGB(0,255,255)), |
457 | - | start = true |
457 | + | ColorSequenceKeypoint.new(0.193,Color3.fromRGB(72,0,255)), |
458 | - | mod:ClearAllChildren() |
458 | + | ColorSequenceKeypoint.new(0.366,Color3.fromRGB(72,0,255)), |
459 | - | local cfs,plat = createPlatform(cfpos) |
459 | + | ColorSequenceKeypoint.new(0.4,Color3.fromRGB(0,255,255)), |
460 | - | local b = ins("Part",mod) |
460 | + | ColorSequenceKeypoint.new(0.63,Color3.fromRGB(0,255,255)), |
461 | - | b.Anchored = true |
461 | + | ColorSequenceKeypoint.new(0.8,Color3.fromRGB(72,0,255)), |
462 | - | b.CanCollide = false |
462 | + | ColorSequenceKeypoint.new(1,Color3.fromRGB(0,0,255)) |
463 | - | b.Material = "Neon" |
463 | + | } |
464 | - | b.BrickColor = bc("CGA brown") |
464 | + | local uiParticle = Baseparticle:Clone() |
465 | - | b.Size = v3(3,.5,3) |
465 | + | uiParticle.Color = ColorSequence.new(colorlist) |
466 | - | b.CFrame = bcf |
466 | + | uiParticle.LightEmission = 1 |
467 | - | b.Transparency = .35 |
467 | + | uiParticle.Size = NumberSequence.new(0.8) |
468 | - | b.Touched:Connect(function(hit) |
468 | + | uiParticle.LockedToPart = true |
469 | - | local hum = hit.Parent:FindFirstChildOfClass("Humanoid") |
469 | + | uiParticle.Texture = "rbxassetid://1143059159" |
470 | - | if hum then |
470 | + | local transparencylist = { NumberSequenceKeypoint.new(0,1), |
471 | - | local rut = hum.Parent:FindFirstChild("HumanoidRootPart") |
471 | + | NumberSequenceKeypoint.new(0.5,0.67), |
472 | - | if rut then |
472 | + | NumberSequenceKeypoint.new(1,1) |
473 | - | rut.CFrame = startp.CFrame * cf(0,3,0) |
473 | + | |
474 | ||
475 | uiParticle.Transparency = NumberSequence.new(transparencylist) | |
476 | uiParticle.ZOffset = -1 | |
477 | - | startp = plat |
477 | + | uiParticle.LockedToPart = true |
478 | - | local curcf = cfpos |
478 | + | uiParticle.Lifetime = NumberRange.new(0.05,0.05) |
479 | - | local oldcf = curcf |
479 | + | uiParticle.Speed = NumberRange.new(0,0) |
480 | - | local endnum |
480 | + | uiParticle.Rate = math.huge |
481 | - | local plats = {} |
481 | + | |
482 | - | table.insert(plats,plat) |
482 | + | for _,hat in pairs(game.Players.LocalPlayer.Character:GetChildren()) do |
483 | - | local num = random(20,26) |
483 | + | |
484 | - | for i = 1,num do |
484 | + | if hat:IsA("BasePart") then |
485 | - | endnum = i |
485 | + | if hat.Name ~= "Head" and hat.Name ~= "HumanoidRootPart" then |
486 | - | if i == num then |
486 | + | uiParticle:Clone().Parent = hat |
487 | - | endd = true |
487 | + | |
488 | end | |
489 | - | curcf = cfs[random(1,#cfs)] |
489 | + | |
490 | - | for i,v in pairs(plats) do |
490 | + | |
491 | - | if (v3(curcf.x,curcf.y,curcf.z)-v.Position).Magnitude <platformWidth then |
491 | + | |
492 | - | repeat |
492 | + | |
493 | - | curcf = cfs[random(1,#cfs)] |
493 | + | beforesong:Stop() |
494 | - | until (v3(curcf.x,curcf.y,curcf.z)-v.Position).Magnitude > (platformWidth)-platformWidth/10 |
494 | + | mainsong = Basesong:Clone() |
495 | mainsong.Parent = game.Players.LocalPlayer.Character | |
496 | mainsong.Looped = true | |
497 | - | cfs,plat = createPlatform(curcf) |
497 | + | mainsong.Volume = 3 |
498 | - | table.insert(plats,plat) |
498 | + | mainsong.SoundId = "rbxassetid://1106602456" |
499 | - | oldcf = curcf |
499 | + | mainsong:Play() |
500 | ||
501 | - | for i,v in pairs(hitboxparts) do |
501 | + | game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 80 |
502 | - | local plat = v.Parent |
502 | + | game.Players.LocalPlayer.Character.Humanoid.JumpPower = 150 |
503 | - | local dp = v |
503 | + | game.Players.LocalPlayer.Character.Humanoid.Name = "LolFakeHumanoid" |
504 | - | local dirs = {dp.CFrame.LookVector,-dp.CFrame.LookVector,dp.CFrame.RightVector,-dp.CFrame.RightVector} |
504 | + | |
505 | - | local curdir = dirs[1] |
505 | + | afterimages = {} |
506 | - | for i = 1,4 do |
506 | + | |
507 | - | local hit,pos,rot = rayc(dp.Position,dirs[i],{dp},platformWidth/1.75) |
507 | + | game.Players.LocalPlayer.Character.Head.face:Clone().Parent = headd |
508 | - | curdir = dirs[i] |
508 | + | |
509 | - | if not hit then |
509 | + | game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key) |
510 | - | if curdir == dirs[1] then |
510 | + | |
511 | - | local pw = ins("Part",plat) |
511 | + | |
512 | - | pw.Anchored = true |
512 | + | amcounter = 0 |
513 | - | pw.Material = plat.Material |
513 | + | |
514 | - | pw.Color = plat.Color |
514 | + | local PhysicsService = game:GetService("PhysicsService") |
515 | - | pw.Size = v3(.3,.75,.15)*platformWidth |
515 | + | |
516 | - | pw.CFrame = plat.CFrame * cf(0,(plat.Size.y/2)+(pw.Size.y/2),-(plat.Size.z/2)+(pw.Size.z/2)) |
516 | + | |
517 | - | local randn = random(1,3) |
517 | + | |
518 | - | if randn == 1 then |
518 | + | |
519 | - | maketorch(pw.CFrame*cf(0,0,(pw.Size.z/2)+(.02*platformWidth)/2)*angles(rad(35),rad(180),0),"Front") |
519 | + | for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do |
520 | - | end |
520 | + | if part:FindFirstChild("ParticleEmitter") then |
521 | - | elseif curdir == dirs[2] then |
521 | + | part.ParticleEmitter.Enabled = false |
522 | - | local pw = ins("Part",plat) |
522 | + | |
523 | - | pw.Anchored = true |
523 | + | if part:IsA("BasePart") then |
524 | - | pw.Material = plat.Material |
524 | + | part.Transparency = 1 |
525 | - | pw.Color = plat.Color |
525 | + | |
526 | - | pw.Size = v3(.3,.75,.15)*platformWidth |
526 | + | |
527 | - | pw.CFrame = plat.CFrame * cf(0,(plat.Size.y/2)+(pw.Size.y/2),(plat.Size.z/2)-(pw.Size.z/2)) |
527 | + | game.Players.LocalPlayer.Character.Head.face.Transparency = 1 |
528 | - | local randn = random(1,3) |
528 | + | |
529 | - | if randn == 1 then |
529 | + | |
530 | - | maketorch(pw.CFrame*cf(0,0,-(pw.Size.z/2)-(.02*platformWidth)/2)*angles(rad(-35),0,0),"Front") |
530 | + | |
531 | - | end |
531 | + | game:GetService("RunService").RenderStepped:connect(function() |
532 | - | elseif curdir == dirs[3] then |
532 | + | for _,image in pairs(afterimages) do |
533 | - | local pw = ins("Part",plat) |
533 | + | for _,part in pairs(image:GetChildren()) do |
534 | - | pw.Anchored = true |
534 | + | if part:IsA("BasePart") then |
535 | - | pw.Material = plat.Material |
535 | + | part.Transparency = part.Transparency+0.1 |
536 | - | pw.Color = plat.Color |
536 | + | if part:FindFirstChild("face") then |
537 | - | pw.Size = v3(.15,.75,.3)*platformWidth |
537 | + | part.face.Transparency = part.face.Transparency+0.1 |
538 | - | pw.CFrame = plat.CFrame * cf((plat.Size.x/2)-(pw.Size.x/2),(plat.Size.y/2)+(pw.Size.y/2),0) |
538 | + | |
539 | - | local randn = random(1,3) |
539 | + | if part.Transparency > 0.9 then |
540 | - | if randn == 1 then |
540 | + | image:remove() |
541 | - | maketorch(pw.CFrame*cf(-(pw.Size.x/2)-(.02*platformWidth)/2,0,0)*angles(0,0,rad(35)),"Left") |
541 | + | |
542 | - | end |
542 | + | |
543 | - | elseif curdir == dirs[4] then |
543 | + | |
544 | - | local pw = ins("Part",plat) |
544 | + | |
545 | - | pw.Anchored = true |
545 | + | |
546 | - | pw.Material = plat.Material |
546 | + | local image = Instance.new("Model",game.Workspace) |
547 | - | pw.Color = plat.Color |
547 | + | image.Name = "AfterImage" |
548 | - | pw.Size = v3(.15,.75,.3)*platformWidth |
548 | + | |
549 | - | pw.CFrame = plat.CFrame * cf(-(plat.Size.x/2)+(pw.Size.x/2),(plat.Size.y/2)+(pw.Size.y/2),0) |
549 | + | local head = headd:Clone() |
550 | - | local randn = random(1,3) |
550 | + | head.CFrame = game.Players.LocalPlayer.Character.Head.CFrame |
551 | - | if randn == 1 then |
551 | + | local hairc = hair:Clone() |
552 | - | maketorch(pw.CFrame*cf((pw.Size.x/2)+(.02*platformWidth)/2,0,0)*angles(0,0,rad(-35)),"Right") |
552 | + | head.Anchored = true |
553 | - | end |
553 | + | head.Transparency = 0 |
554 | head.face.Transparency = 0 | |
555 | hairc.Transparency = 0 | |
556 | hairc.Anchored = true | |
557 | - | for i,v in pairs(mod:GetDescendants()) do |
557 | + | hairc.Weld:remove() |
558 | - | if v:IsA("Part") then |
558 | + | head.Parent = image |
559 | - | v.Locked = true |
559 | + | hairc.Parent = image |
560 | local torsoc = torso:Clone() | |
561 | torsoc.Parent = image | |
562 | torsoc.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame*CFrame.Angles(0,math.rad(-180),0) | |
563 | - | print("total amount: "..endnum) |
563 | + | local armc = arm:Clone() |
564 | armc.Parent = image | |
565 | - | gen() |
565 | + | armc.CFrame = game.Players.LocalPlayer.Character["Right Arm"].CFrame*CFrame.Angles(0,math.rad(180),0) |
566 | - | local rem = ins("RemoteEvent",owner.PlayerGui) |
566 | + | local armc = arm:Clone() |
567 | - | rem.Name = "ddd" |
567 | + | armc.Parent = image |
568 | - | rem.OnServerEvent:Connect(function(plr) |
568 | + | armc.CFrame = game.Players.LocalPlayer.Character["Left Arm"].CFrame*CFrame.Angles(0,math.rad(180),0) |
569 | - | maketorch(owner.Character.Torso.CFrame) |
569 | + | local legc = leg1:Clone() |
570 | - | gen() |
570 | + | legc.Parent = image |
571 | legc.CFrame = game.Players.LocalPlayer.Character["Left Leg"].CFrame*CFrame.Angles(0,math.rad(-180),0) | |
572 | - | owner.Chatted:Connect(function(msg) |
572 | + | local legc = leg2:Clone() |
573 | - | if msg:lower() == "tp" then |
573 | + | legc.Parent = image |
574 | - | owner.Character.HumanoidRootPart.CFrame = startp.CFrame * cf(0,3,0) |
574 | + | legc.CFrame = game.Players.LocalPlayer.Character["Right Leg"].CFrame*CFrame.Angles(0,math.rad(-180),0) |
575 | ||
576 | table.insert(afterimages,image) | |
577 | - | local client = NLS([[ |
577 | + | |
578 | - | local mouse = game:GetService("Players").LocalPlayer:GetMouse() |
578 | + | game.Players.LocalPlayer.Character.Parent = game.Workspace.CurrentCamera |
579 | - | local rem = owner.PlayerGui:WaitForChild("ddd") |
579 | + | end) |