SHOW:
|
|
- or go back to the newest paste.
| 1 | - | m = game.Players.LocalPlayer |
| 1 | + | -- This script has been converted to FE by iPxter |
| 2 | ||
| 3 | ||
| 4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 6 | do | |
| 7 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
| |
| 8 | script.Parent = Player.Character | |
| 9 | ||
| 10 | --RemoteEvent for communicating | |
| 11 | local Event = Instance.new("RemoteEvent")
| |
| 12 | Event.Name = "UserInput_Event" | |
| 13 | ||
| 14 | --Fake event to make stuff like Mouse.KeyDown work | |
| 15 | local function fakeEvent() | |
| 16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
| |
| 17 | t.connect = t.Connect | |
| 18 | return t | |
| 19 | end | |
| 20 | ||
| 21 | --Creating fake input objects with fake variables | |
| 22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 26 | end} | |
| 27 | --Merged 2 functions into one by checking amount of arguments | |
| 28 | CAS.UnbindAction = CAS.BindAction | |
| 29 | ||
| 30 | --This function will trigger the events that have been :Connect()'ed | |
| 31 | local function te(self,ev,...) | |
| 32 | local t = m[ev] | |
| 33 | if t and t._fakeEvent and t.Function then | |
| 34 | t.Function(...) | |
| 35 | end | |
| 36 | end | |
| 37 | m.TrigEvent = te | |
| 38 | UIS.TrigEvent = te | |
| 39 | ||
| 40 | Event.OnServerEvent:Connect(function(plr,io) | |
| 41 | if plr~=Player then return end | |
| 42 | if io.isMouse then | |
| 43 | m.Target = io.Target | |
| 44 | m.Hit = io.Hit | |
| 45 | else | |
| 46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 49 | end | |
| 50 | for _,t in pairs(CAS.Actions) do | |
| 51 | for _,k in pairs(t.Keys) do | |
| 52 | if k==io.KeyCode then | |
| 53 | t.Function(t.Name,io.UserInputState,io) | |
| 54 | end | |
| 55 | end | |
| 56 | end | |
| 57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 59 | end | |
| 60 | end) | |
| 61 | Event.Parent = NLS([==[ | |
| 62 | local Player = game:GetService("Players").LocalPlayer
| |
| 63 | local Event = script:WaitForChild("UserInput_Event")
| |
| 64 | ||
| 65 | local UIS = game:GetService("UserInputService")
| |
| 66 | local input = function(io,a) | |
| 67 | if a then return end | |
| 68 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
| |
| 70 | end | |
| 71 | UIS.InputBegan:Connect(input) | |
| 72 | UIS.InputEnded:Connect(input) | |
| 73 | ||
| 74 | local Mouse = Player:GetMouse() | |
| 75 | local h,t | |
| 76 | - | Player = game:GetService("Players").LocalPlayer
|
| 76 | + | --Give the server mouse data 30 times every second, but only if the values changed |
| 77 | --If player is not moving their mouse, client won't fire events | |
| 78 | while wait(1/30) do | |
| 79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 80 | h,t=Mouse.Hit,Mouse.Target | |
| 81 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 82 | end | |
| 83 | end]==],Player.Character) | |
| 84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 85 | end | |
| 86 | m = owner | |
| 87 | char = m.Character | |
| 88 | ||
| 89 | function Random(num) | |
| 90 | local section=num % 1 * 3; | |
| 91 | local secondary=0.5 * math.pi * (section % 1); | |
| 92 | if section < 1 then | |
| 93 | return 1,1 - math.cos(secondary),1 - math.sin(secondary); | |
| 94 | elseif section < 2 then | |
| 95 | return 1 - math.sin(secondary),1,1 - math.cos(secondary); | |
| 96 | else | |
| 97 | return 1 - math.cos(secondary),1 - math.sin(secondary),1; | |
| 98 | end | |
| 99 | end | |
| 100 | ||
| 101 | --//Lol try to figure this one out// | |
| 102 | function rainb(hue) | |
| 103 | local section = hue % 1 * 3 | |
| 104 | local secondary = 0.5 * math.pi * (section % 1) | |
| 105 | if section < 1 then | |
| 106 | return Color3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary)) | |
| 107 | elseif section < 2 then | |
| 108 | return Color3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary)) | |
| 109 | else | |
| 110 | return Color3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1) | |
| 111 | end | |
| 112 | end | |
| 113 | ||
| 114 | Chillmusic = Instance.new("Sound", workspace)
| |
| 115 | Chillmusic.Parent = game.Chat | |
| 116 | Chillmusic.Volume = 8 | |
| 117 | Chillmusic.SoundId = "rbxassetid://1221694420" | |
| 118 | Chillmusic.Looped = true | |
| 119 | Chillmusic:Play() | |
| 120 | ||
| 121 | local txt = Instance.new("BillboardGui", char)
| |
| 122 | txt.Adornee = char.Head | |
| 123 | txt.Name = "_status" | |
| 124 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 125 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 126 | local text = Instance.new("TextLabel", txt)
| |
| 127 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 128 | text.FontSize = "Size24" | |
| 129 | text.TextScaled = true | |
| 130 | text.TextTransparency = 0 | |
| 131 | text.BackgroundTransparency = 1 | |
| 132 | text.TextTransparency = 0 | |
| 133 | text.TextStrokeTransparency = 0 | |
| 134 | text.Font = "Arcade" | |
| 135 | text.TextStrokeColor3 = Color3.new(0, 0, 0) | |
| 136 | v = Instance.new("Part")
| |
| 137 | v.Name = "ColorBrick" | |
| 138 | v.Parent = m.Character | |
| 139 | v.FormFactor = "Symmetric" | |
| 140 | v.Anchored = true | |
| 141 | v.CanCollide = false | |
| 142 | v.BottomSurface = "Smooth" | |
| 143 | v.TopSurface = "Smooth" | |
| 144 | v.Size = Vector3.new(10, 5, 3) | |
| 145 | v.Transparency = 1 | |
| 146 | v.CFrame = char.Torso.CFrame | |
| 147 | v.BrickColor = BrickColor.new("Really black")
| |
| 148 | v.Transparency = 1 | |
| 149 | spawn(function() | |
| 150 | TweenService = game:GetService("TweenService")
| |
| 151 | Colours = {Color3.fromRGB(0,100,200),Color3.fromRGB(4, 175, 236)}
| |
| 152 | Int = 0 | |
| 153 | while wait(2) do | |
| 154 | if Int == #Colours then Int = 0 end | |
| 155 | Int = Int+1 | |
| 156 | TweenService:Create(text,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play()
| |
| 157 | end | |
| 158 | end) | |
| 159 | v.Shape = "Block" | |
| 160 | text.Text = "~»Chill Af«~" | |
| 161 | Player = owner | |
| 162 | Character = Player.Character | |
| 163 | PlayerGui = Player.PlayerGui | |
| 164 | Backpack = Player.Backpack | |
| 165 | Torso = Character.Torso | |
| 166 | Head = Character.Head | |
| 167 | Humanoid = Character.Humanoid | |
| 168 | m = Instance.new("Model", Character)
| |
| 169 | LeftArm = Character["Left Arm"] | |
| 170 | LeftLeg = Character["Left Leg"] | |
| 171 | RightArm = Character["Right Arm"] | |
| 172 | RightLeg = Character["Right Leg"] | |
| 173 | LS = Torso["Left Shoulder"] | |
| 174 | LH = Torso["Left Hip"] | |
| 175 | RS = Torso["Right Shoulder"] | |
| 176 | RH = Torso["Right Hip"] | |
| 177 | Face = Head.face | |
| 178 | Neck = Torso.Neck | |
| 179 | it = Instance.new | |
| 180 | attacktype = 1 | |
| 181 | vt = Vector3.new | |
| 182 | cf = CFrame.new | |
| 183 | bc = BrickColor.new | |
| 184 | br = BrickColor.random | |
| 185 | it = Instance.new | |
| 186 | euler = CFrame.fromEulerAnglesXYZ | |
| 187 | angles = CFrame.Angles | |
| 188 | cloaked = false | |
| 189 | necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 190 | necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 191 | LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 192 | LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 193 | RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 194 | RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 195 | RootPart = Character.HumanoidRootPart | |
| 196 | RootJoint = RootPart.RootJoint | |
| 197 | RootCF = euler(-1.57, 0, 3.14) | |
| 198 | attack = false | |
| 199 | attackdebounce = false | |
| 200 | equipped = false | |
| 201 | trispeed = 0.2 | |
| 202 | attackmode = "none" | |
| 203 | local idle = 0 | |
| 204 | local Anim = "Idle" | |
| 205 | Head.face.Texture = "rbxassetid://206844132" | |
| 206 | ||
| 207 | local Trail = Instance.new("Trail",char)
| |
| 208 | local attachment0 = Instance.new("Attachment",char["Right Arm"])
| |
| 209 | attachment0.Name = "TrailAttachment0" | |
| 210 | attachment0.CFrame = CFrame.new(-0.25,-1,0) | |
| 211 | local attachment1 = Instance.new("Attachment",char["Right Arm"])
| |
| 212 | attachment1.CFrame = CFrame.new(0.25,-1,0) | |
| 213 | attachment1.Name = "TrailAttachment1" | |
| 214 | Trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
| |
| 215 | Trail.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,0,0)),ColorSequenceKeypoint.new(0.2,Color3.new(1,1,0)),ColorSequenceKeypoint.new(0.4,Color3.new(0,1,0)),ColorSequenceKeypoint.new(0.6,Color3.new(0,1,1)),ColorSequenceKeypoint.new(0.8,Color3.new(0,0,1)),ColorSequenceKeypoint.new(1,Color3.new(0,0,1))})
| |
| 216 | Trail.Lifetime = 0.5 | |
| 217 | Trail.Attachment0 = attachment0 | |
| 218 | Trail.Attachment1 = attachment1 | |
| 219 | ||
| 220 | local Trail = Instance.new("Trail",char)
| |
| 221 | local attachment0 = Instance.new("Attachment",char["Left Arm"])
| |
| 222 | attachment0.Name = "TrailAttachment0" | |
| 223 | attachment0.CFrame = CFrame.new(-0.25,-1,0) | |
| 224 | local attachment1 = Instance.new("Attachment",char["Left Arm"])
| |
| 225 | attachment1.CFrame = CFrame.new(0.25,-1,0) | |
| 226 | attachment1.Name = "TrailAttachment1" | |
| 227 | Trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
| |
| 228 | Trail.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,0,0)),ColorSequenceKeypoint.new(0.2,Color3.new(1,1,0)),ColorSequenceKeypoint.new(0.4,Color3.new(0,1,0)),ColorSequenceKeypoint.new(0.6,Color3.new(0,1,1)),ColorSequenceKeypoint.new(0.8,Color3.new(0,0,1)),ColorSequenceKeypoint.new(1,Color3.new(0,0,1))})
| |
| 229 | Trail.Lifetime = 0.5 | |
| 230 | Trail.Attachment0 = attachment0 | |
| 231 | Trail.Attachment1 = attachment1 | |
| 232 | ||
| 233 | local Trail = Instance.new("Trail",char)
| |
| 234 | local attachment0 = Instance.new("Attachment",char["Right Leg"])
| |
| 235 | attachment0.Name = "TrailAttachment0" | |
| 236 | attachment0.CFrame = CFrame.new(-0.25,-1,0) | |
| 237 | local attachment1 = Instance.new("Attachment",char["Right Leg"])
| |
| 238 | attachment1.CFrame = CFrame.new(0.25,-1,0) | |
| 239 | attachment1.Name = "TrailAttachment1" | |
| 240 | Trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
| |
| 241 | Trail.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,0,0)),ColorSequenceKeypoint.new(0.2,Color3.new(1,1,0)),ColorSequenceKeypoint.new(0.4,Color3.new(0,1,0)),ColorSequenceKeypoint.new(0.6,Color3.new(0,1,1)),ColorSequenceKeypoint.new(0.8,Color3.new(0,0,1)),ColorSequenceKeypoint.new(1,Color3.new(0,0,1))})
| |
| 242 | Trail.Lifetime = 0.5 | |
| 243 | Trail.Attachment0 = attachment0 | |
| 244 | Trail.Attachment1 = attachment1 | |
| 245 | ||
| 246 | local Trail = Instance.new("Trail",char)
| |
| 247 | local attachment0 = Instance.new("Attachment",char["Left Leg"])
| |
| 248 | attachment0.Name = "TrailAttachment0" | |
| 249 | attachment0.CFrame = CFrame.new(-0.25,-1,0) | |
| 250 | local attachment1 = Instance.new("Attachment",char["Left Leg"])
| |
| 251 | attachment1.CFrame = CFrame.new(0.25,-1,0) | |
| 252 | attachment1.Name = "TrailAttachment1" | |
| 253 | Trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
| |
| 254 | Trail.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,0,0)),ColorSequenceKeypoint.new(0.2,Color3.new(1,1,0)),ColorSequenceKeypoint.new(0.4,Color3.new(0,1,0)),ColorSequenceKeypoint.new(0.6,Color3.new(0,1,1)),ColorSequenceKeypoint.new(0.8,Color3.new(0,0,1)),ColorSequenceKeypoint.new(1,Color3.new(0,0,1))})
| |
| 255 | Trail.Lifetime = 0.5 | |
| 256 | Trail.Attachment0 = attachment0 | |
| 257 | Trail.Attachment1 = attachment1 | |
| 258 | ||
| 259 | ||
| 260 | Humanoid.Animator.Parent = nil | |
| 261 | Character.Animate.Parent = nil | |
| 262 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
| 263 | if SinglePlayer then | |
| 264 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
| 265 | end | |
| 266 | local List = {}
| |
| 267 | for i, v in pairs(workspace:GetChildren()) do | |
| 268 | if v:IsA("Model") and v:findFirstChild("Torso") and v ~= Character and Distance >= (v.Torso.Position - Position).magnitude then
| |
| 269 | table.insert(List, v) | |
| 270 | end | |
| 271 | end | |
| 272 | return List | |
| 273 | end | |
| 274 | function lerp(a, b, t) | |
| 275 | return a + (b - a) * t | |
| 276 | end | |
| 277 | function slerp(a, b, t) | |
| 278 | dot = a:Dot(b) | |
| 279 | if dot > 0.99999 or dot < -0.99999 then | |
| 280 | return t <= 0.5 and a or b | |
| 281 | else | |
| 282 | r = math.acos(dot) | |
| 283 | return (a * math.sin((1 - t) * r) + b * math.sin(t * r)) / math.sin(r) | |
| 284 | end | |
| 285 | end | |
| 286 | function matrixInterpolate(a, b, t) | |
| 287 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
| 288 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
| 289 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx, by, bz), t) | |
| 290 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) | |
| 291 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) | |
| 292 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) | |
| 293 | local t = v1:Dot(v2) | |
| 294 | if not (t < 0) and t ~= 0 and not (t > 0) then | |
| 295 | return CFrame.new() | |
| 296 | end | |
| 297 | return CFrame.new(v0.x, v0.y, v0.z, v1.x, v1.y, v1.z, v2.x, v2.y, v2.z, v3.x, v3.y, v3.z) | |
| 298 | end | |
| 299 | function genWeld(a, b) | |
| 300 | local w = Instance.new("Weld", a)
| |
| 301 | w.Part0 = a | |
| 302 | w.Part1 = b | |
| 303 | return w | |
| 304 | end | |
| 305 | function weld(a, b) | |
| 306 | local weld = Instance.new("Weld")
| |
| 307 | weld.Name = "W" | |
| 308 | weld.Part0 = a | |
| 309 | weld.Part1 = b | |
| 310 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
| 311 | weld.Parent = a | |
| 312 | return weld | |
| 313 | end | |
| 314 | function Lerp(c1, c2, al) | |
| 315 | local com1 = {
| |
| 316 | c1.X, | |
| 317 | c1.Y, | |
| 318 | c1.Z, | |
| 319 | c1:toEulerAnglesXYZ() | |
| 320 | } | |
| 321 | local com2 = {
| |
| 322 | c2.X, | |
| 323 | c2.Y, | |
| 324 | c2.Z, | |
| 325 | c2:toEulerAnglesXYZ() | |
| 326 | } | |
| 327 | for i, v in pairs(com1) do | |
| 328 | com1[i] = v + (com2[i] - v) * al | |
| 329 | end | |
| 330 | return CFrame.new(com1[1], com1[2], com1[3]) * CFrame.Angles(select(4, unpack(com1))) | |
| 331 | end | |
| 332 | function clerp(a, b, t) | |
| 333 | local qa = {
| |
| 334 | QuaternionFromCFrame(a) | |
| 335 | } | |
| 336 | local qb = {
| |
| 337 | QuaternionFromCFrame(b) | |
| 338 | } | |
| 339 | local ax, ay, az = a.x, a.y, a.z | |
| 340 | local bx, by, bz = b.x, b.y, b.z | |
| 341 | local _t = 1 - t | |
| 342 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 343 | end | |
| 344 | function QuaternionFromCFrame(cf) | |
| 345 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 346 | local trace = m00 + m11 + m22 | |
| 347 | if trace > 0 then | |
| 348 | local s = math.sqrt(1 + trace) | |
| 349 | local recip = 0.5 / s | |
| 350 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 351 | else | |
| 352 | local i = 0 | |
| 353 | if m00 < m11 then | |
| 354 | i = 1 | |
| 355 | end | |
| 356 | if m22 > (i == 0 and m00 or m11) then | |
| 357 | i = 2 | |
| 358 | end | |
| 359 | if i == 0 then | |
| 360 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 361 | local recip = 0.5 / s | |
| 362 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 363 | elseif i == 1 then | |
| 364 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 365 | local recip = 0.5 / s | |
| 366 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 367 | elseif i == 2 then | |
| 368 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 369 | local recip = 0.5 / s | |
| 370 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 371 | end | |
| 372 | end | |
| 373 | end | |
| 374 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 375 | local xs, ys, zs = x + x, y + y, z + z | |
| 376 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 377 | local xx = x * xs | |
| 378 | local xy = x * ys | |
| 379 | local xz = x * zs | |
| 380 | local yy = y * ys | |
| 381 | local yz = y * zs | |
| 382 | local zz = z * zs | |
| 383 | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) | |
| 384 | end | |
| 385 | function QuaternionSlerp(a, b, t) | |
| 386 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 387 | local startInterp, finishInterp | |
| 388 | if cosTheta >= 1.0E-4 then | |
| 389 | if 1 - cosTheta > 1.0E-4 then | |
| 390 | local theta = math.acos(cosTheta) | |
| 391 | local invSinTheta = 1 / math.sin(theta) | |
| 392 | startInterp = math.sin((1 - t) * theta) * invSinTheta | |
| 393 | finishInterp = math.sin(t * theta) * invSinTheta | |
| 394 | else | |
| 395 | startInterp = 1 - t | |
| 396 | finishInterp = t | |
| 397 | end | |
| 398 | elseif 1 + cosTheta > 1.0E-4 then | |
| 399 | local theta = math.acos(-cosTheta) | |
| 400 | local invSinTheta = 1 / math.sin(theta) | |
| 401 | startInterp = math.sin((t - 1) * theta) * invSinTheta | |
| 402 | finishInterp = math.sin(t * theta) * invSinTheta | |
| 403 | else | |
| 404 | startInterp = t - 1 | |
| 405 | finishInterp = t | |
| 406 | - | Player = game:GetService("Players").LocalPlayer
|
| 406 | + | |
| 407 | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp | |
| 408 | end | |
| 409 | function rayCast(Pos, Dir, Max, Ignore) | |
| 410 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
| |
| 411 | end | |
| 412 | function part(formfactor, parent, reflectance, transparency, brickcolor, name, size) | |
| 413 | local fp = it("Part")
| |
| 414 | fp.formFactor = formfactor | |
| 415 | fp.Parent = parent | |
| 416 | fp.Reflectance = reflectance | |
| 417 | fp.Transparency = transparency | |
| 418 | fp.CanCollide = false | |
| 419 | fp.Locked = true | |
| 420 | fp.BrickColor = brickcolor | |
| 421 | fp.Name = name | |
| 422 | fp.Size = size | |
| 423 | fp.Position = Torso.Position | |
| 424 | fp.BottomSurface = "Smooth" | |
| 425 | fp.TopSurface = "Smooth" | |
| 426 | fp:BreakJoints() | |
| 427 | return fp | |
| 428 | end | |
| 429 | function mesh(Mesh, part, meshtype, meshid, offset, scale) | |
| 430 | local mesh = it(Mesh) | |
| 431 | mesh.Parent = part | |
| 432 | if Mesh == "SpecialMesh" then | |
| 433 | mesh.MeshType = meshtype | |
| 434 | mesh.MeshId = meshid | |
| 435 | end | |
| 436 | mesh.Offset = offset | |
| 437 | mesh.Scale = scale | |
| 438 | return mesh | |
| 439 | end | |
| 440 | function weld(parent, part0, part1, c0) | |
| 441 | local weld = it("Weld")
| |
| 442 | weld.Parent = parent | |
| 443 | weld.Part0 = part0 | |
| 444 | weld.Part1 = part1 | |
| 445 | weld.C0 = c0 | |
| 446 | return weld | |
| 447 | end | |
| 448 | function rayCast(Pos, Dir, Max, Ignore) | |
| 449 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
| |
| 450 | end | |
| 451 | RSH, LSH = nil, nil | |
| 452 | RW, LW = Instance.new("Weld"), Instance.new("Weld")
| |
| 453 | RW.Name = "Right Shoulder" | |
| 454 | LW.Name = "Left Shoulder" | |
| 455 | LH = Torso["Left Hip"] | |
| 456 | RH = Torso["Right Hip"] | |
| 457 | TorsoColor = Torso.BrickColor | |
| 458 | function NoOutline(Part) | |
| 459 | Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 460 | end | |
| 461 | player = Player | |
| 462 | ch = Character | |
| 463 | RSH = ch.Torso["Right Shoulder"] | |
| 464 | LSH = ch.Torso["Left Shoulder"] | |
| 465 | RSH.Parent = nil | |
| 466 | LSH.Parent = nil | |
| 467 | RW.Name = "Right Shoulder" | |
| 468 | RW.Part0 = ch.Torso | |
| 469 | RW.C0 = cf(1.5, 0.5, 0) | |
| 470 | RW.C1 = cf(0, 0.5, 0) | |
| 471 | RW.Part1 = ch["Right Arm"] | |
| 472 | RW.Parent = ch.Torso | |
| 473 | LW.Name = "Left Shoulder" | |
| 474 | LW.Part0 = ch.Torso | |
| 475 | LW.C0 = cf(-1.5, 0.5, 0) | |
| 476 | LW.C1 = cf(0, 0.5, 0) | |
| 477 | LW.Part1 = ch["Left Arm"] | |
| 478 | LW.Parent = ch.Torso | |
| 479 | function newWeld(wp0, wp1, wc0x, wc0y, wc0z) | |
| 480 | local wld = Instance.new("Weld", wp1)
| |
| 481 | wld.Part0 = wp0 | |
| 482 | wld.Part1 = wp1 | |
| 483 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
| 484 | end | |
| 485 | newWeld(RootPart, Torso, 0, -1, 0) | |
| 486 | Torso.Weld.C1 = CFrame.new(0, -1, 0) | |
| 487 | newWeld(Torso, LeftLeg, -0.5, -1, 0) | |
| 488 | LeftLeg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 489 | newWeld(Torso, RightLeg, 0.5, -1, 0) | |
| 490 | RightLeg.Weld.C1 = CFrame.new(0, 1, 0) | |
| 491 | Player = owner | |
| 492 | Character = Player.Character | |
| 493 | mouse = Player:GetMouse() | |
| 494 | m = Instance.new("Model", Character)
| |
| 495 | local weldBetween = function(a, b) | |
| 496 | local weldd = Instance.new("ManualWeld")
| |
| 497 | weldd.Part0 = a | |
| 498 | weldd.Part1 = b | |
| 499 | weldd.C0 = CFrame.new() | |
| 500 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 501 | weldd.Parent = a | |
| 502 | return weldd | |
| 503 | end | |
| 504 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 505 | ArtificialHB.Name = "Heartbeat" | |
| 506 | script:WaitForChild("Heartbeat")
| |
| 507 | frame = 0.016666666666666666 | |
| 508 | tf = 0 | |
| 509 | allowframeloss = false | |
| 510 | tossremainder = false | |
| 511 | lastframe = tick() | |
| 512 | script.Heartbeat:Fire() | |
| 513 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 514 | tf = tf + s | |
| 515 | if tf >= frame then | |
| 516 | if allowframeloss then | |
| 517 | script.Heartbeat:Fire() | |
| 518 | lastframe = tick() | |
| 519 | else | |
| 520 | for i = 1, math.floor(tf / frame) do | |
| 521 | script.Heartbeat:Fire() | |
| 522 | end | |
| 523 | lastframe = tick() | |
| 524 | end | |
| 525 | if tossremainder then | |
| 526 | tf = 0 | |
| 527 | else | |
| 528 | tf = tf - frame * math.floor(tf / frame) | |
| 529 | end | |
| 530 | end | |
| 531 | end) | |
| 532 | function swait(num) | |
| 533 | if num == 0 or num == nil then | |
| 534 | ArtificialHB.Event:wait() | |
| 535 | else | |
| 536 | for i = 0, num do | |
| 537 | ArtificialHB.Event:wait() | |
| 538 | end | |
| 539 | end | |
| 540 | end | |
| 541 | mouse.KeyDown:connect(function(key) | |
| 542 | if key == "c" then | |
| 543 | repeat | |
| 544 | swait() | |
| 545 | Chillmusic.Volume = Chillmusic.Volume - 0.05 | |
| 546 | until Chillmusic.Volume == 0 | |
| 547 | Chillmusic:Stop() | |
| 548 | swait() | |
| 549 | Chillmusic2:Play() | |
| 550 | Chillmusic.Volume = 1 | |
| 551 | end | |
| 552 | end) | |
| 553 | mouse.KeyDown:connect(function(key) | |
| 554 | if key == "f" then | |
| 555 | text.Text = "Guys why not just chill?" | |
| 556 | wait(1) | |
| 557 | text.Text = "It's just the way life should be." | |
| 558 | wait(1) | |
| 559 | text.Text = "Chill is life." | |
| 560 | wait(1) | |
| 561 | text.Text = "Chill is love." | |
| 562 | wait(1) | |
| 563 | text.Text = "Chill is for the best." | |
| 564 | wait(1) | |
| 565 | text.Text = "Maybe if you were chill you wouldn't be a skid..." | |
| 566 | wait(3) | |
| 567 | text.Text = "But some people cant handle the chill can they." | |
| 568 | wait(3) | |
| 569 | text.Text = "Chill Af" | |
| 570 | end | |
| 571 | end) | |
| 572 | mouse.KeyDown:connect(function(key) | |
| 573 | if key == "v" then | |
| 574 | repeat | |
| 575 | swait() | |
| 576 | Chillmusic2.Volume = Chillmusic2.Volume - 0.05 | |
| 577 | until Chillmusic2.Volume == 0 | |
| 578 | Chillmusic2:Stop() | |
| 579 | swait() | |
| 580 | Chillmusic:Play() | |
| 581 | Chillmusic2.Volume = 1 | |
| 582 | end | |
| 583 | end) | |
| 584 | mouse.KeyDown:connect(function(key) | |
| 585 | if key == "b" then | |
| 586 | text.Text = "Be back scrubs." | |
| 587 | wait(1) | |
| 588 | text.Text = "Afk nibba..." | |
| 589 | end | |
| 590 | end) | |
| 591 | mouse.KeyDown:connect(function(key) | |
| 592 | - | local Chill_Gui_Bro = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
|
| 592 | + | |
| 593 | text.Text = "K back you nubs's!" | |
| 594 | wait(1) | |
| 595 | text.Text = "Chill Af" | |
| 596 | end | |
| 597 | end) | |
| 598 | m = Instance.new("ForceField", Character)
| |
| 599 | m.Visible = false | |
| 600 | Character.Humanoid.WalkSpeed = 4 | |
| 601 | mouse.KeyDown:connect(function(key) | |
| 602 | if string.byte(key) == 48 then | |
| 603 | Swing = 2 | |
| 604 | Character.Humanoid.WalkSpeed = 40 | |
| 605 | end | |
| 606 | end) | |
| 607 | mouse.KeyUp:connect(function(key) | |
| 608 | if string.byte(key) == 48 then | |
| 609 | Swing = 1 | |
| 610 | Character.Humanoid.WalkSpeed = 4 | |
| 611 | end | |
| 612 | end) | |
| 613 | local sine = 0 | |
| 614 | local change = 1 | |
| 615 | local val = 0 | |
| 616 | spawn(function() | |
| 617 | while true do | |
| 618 | swait() | |
| 619 | sine = sine + change | |
| 620 | local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 621 | local velderp = RootPart.Velocity.y | |
| 622 | hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character) | |
| 623 | if equipped == true or equipped == false then | |
| 624 | if attack == false then | |
| 625 | idle = idle + 1 | |
| 626 | Character.Humanoid.MaxHealth = math.huge | |
| 627 | Character.Humanoid.Health = math.huge | |
| 628 | else | |
| 629 | idle = 0 | |
| 630 | end | |
| 631 | if not (idle >= 500) or attack == false then | |
| 632 | end | |
| 633 | if torvel < 1 and hitfloor ~= nil then | |
| 634 | Anim = "Chill" | |
| 635 | if attack == false then | |
| 636 | Humanoid.CameraOffset = Vector3.new(0, 10.25 - 5.45 * math.cos(sine / 65), 0) | |
| 637 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 10.25 - 5.45 * math.cos(sine / 65), 0) * CFrame.Angles(math.rad(90 + 15 * math.sin(sine / 60)), math.rad(0), math.rad(0)), 0.8) | |
| 638 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20 + 20 * math.cos(sine / 60)), math.rad(0 + 4 * math.sin(sine / 60)), math.rad(0)), 0.2) | |
| 639 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-90 + 25 * math.cos(sine / 60)), math.rad(0 + 20 * math.sin(sine / 60)), math.rad(0 + 55 * math.sin(sine / 60))), 0.3) | |
| 640 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-90 + 25 * math.cos(sine / 60)), math.rad(-20 - 20 * math.sin(sine / 60)), math.rad(0 - 55 * math.sin(sine / 60))), 0.3) | |
| 641 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -0.86 + 0.03 * math.cos(sine / 65), -0.4) * CFrame.Angles(math.rad(15 - 45 * math.cos(sine / 70)), math.rad(3), math.rad(-4)), 0.8) | |
| 642 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1 + 0.05 * math.cos(sine / 65), -0.4) * CFrame.Angles(math.rad(15 - 35 * math.cos(sine / 65)), math.rad(-3), math.rad(4)), 0.8) | |
| 643 | end | |
| 644 | elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then | |
| 645 | Anim = "Walk" | |
| 646 | if attack == false then | |
| 647 | Humanoid.CameraOffset = Vector3.new(0, 6 - 2.55 * math.cos(sine / 48.5), 0) | |
| 648 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.2) | |
| 649 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 6 - 2.55 * math.cos(sine / 48.5), 0) * CFrame.Angles(math.rad(-90 + 5 * math.cos(sine / 45)), math.rad(180 * math.cos(sine / 48.5)), math.rad(0)), 0.8) | |
| 650 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-4 + 2 * math.sin(sine / 48)), math.rad(0), math.rad(0)), 0.2) | |
| 651 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + 0.1 * math.cos(sine / 45), 0) * angles(math.rad(90), math.rad(0), math.rad(90 - 20.5 * math.cos(sine / 45))), 0.3) | |
| 652 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + 0.1 * math.cos(sine / 45), 0) * angles(math.rad(90), math.rad(0), math.rad(-90 + 20.5 * math.cos(sine / 45))), 0.3) | |
| 653 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1 - 0.05 * math.cos(sine / 45), 0) * CFrame.Angles(math.rad(0), math.rad(3), math.rad(-4)), 0.8) | |
| 654 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1 + 0.05 * math.cos(sine / 45), 0) * CFrame.Angles(math.rad(0), math.rad(-3), math.rad(4)), 0.8) | |
| 655 | end | |
| 656 | elseif torvel >= 22 and hitfloor ~= nil then | |
| 657 | Anim = "Run" | |
| 658 | if attack == false then | |
| 659 | Humanoid.CameraOffset = Vector3.new(0, 6 - 1.55 * math.cos(sine / 68.5), 0) | |
| 660 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 6 - 1.55 * math.cos(sine / 68.5), -0.2) * angles(math.rad(50), math.rad(0), math.rad(0)), 0.2) | |
| 661 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 6 - 1.55 * math.cos(sine / 68.5), 0) * CFrame.Angles(math.rad(-40 + 20 * math.sin(sine / 68.5)), 0, 0), 0.8) | |
| 662 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-12 + 17 * math.cos(sine / 68.5)), math.rad(0), math.rad(0)), 0.2) | |
| 663 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-90), math.rad(0), math.rad(40 - 20 * math.cos(sine / 68.5))), 0.2) | |
| 664 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-90), math.rad(0), math.rad(-40 + 20 * math.cos(sine / 68.5))), 0.2) | |
| 665 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -0.87, -0.25) * CFrame.Angles(math.rad(-45 - 10 * math.cos(sine / 68.5)), math.rad(0), math.rad(0)), 0.8) | |
| 666 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, -0.1) * CFrame.Angles(math.rad(-35 - 10 * math.cos(sine / 68.5)), math.rad(0), math.rad(0)), 0.8) | |
| 667 | end | |
| 668 | end | |
| 669 | end | |
| 670 | end | |
| 671 | end) | |
| 672 | ||
| 673 | ||
| 674 | ||
| 675 | -- Objects | |
| 676 | ||
| 677 | local Chill_Gui_Bro = Instance.new("ScreenGui", owner.PlayerGui)
| |
| 678 | local Header = Instance.new("Frame")
| |
| 679 | local BackGround = Instance.new("Frame")
| |
| 680 | local Chill_Gui_Label = Instance.new("TextLabel")
| |
| 681 | local Play_ID_Button = Instance.new("TextButton")
| |
| 682 | local ID_Box = Instance.new("TextBox")
| |
| 683 | local Set_Vol_Button = Instance.new("TextButton")
| |
| 684 | local Vol_Box = Instance.new("TextBox")
| |
| 685 | local Set_Tpos_Button = Instance.new("TextButton")
| |
| 686 | local Tpos_Box = Instance.new("TextBox")
| |
| 687 | local Set_Text_Button = Instance.new("TextButton")
| |
| 688 | local Tpos_Box_2 = Instance.new("TextBox")
| |
| 689 | local Toggle_Chat_Button = Instance.new("TextButton")
| |
| 690 | local Chat_Toggle_Label = Instance.new("TextLabel")
| |
| 691 | local Current_Song_Label = Instance.new("TextLabel")
| |
| 692 | ||
| 693 | -- Properties | |
| 694 | ||
| 695 | Chill_Gui_Bro.Name = "Chill_Gui_Bro" | |
| 696 | ||
| 697 | Header.Name = "Header" | |
| 698 | Header.Parent = Chill_Gui_Bro | |
| 699 | Header.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647) | |
| 700 | Header.BorderSizePixel = 0 | |
| 701 | Header.Draggable = true | |
| 702 | Header.Active = true | |
| 703 | Header.Selectable = true | |
| 704 | Header.Position = UDim2.new(0.469539374, 0, 0.147921771, 0) | |
| 705 | Header.Size = UDim2.new(0, 250, 0, 45) | |
| 706 | ||
| 707 | BackGround.Name = "BackGround" | |
| 708 | BackGround.Parent = Header | |
| 709 | BackGround.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078) | |
| 710 | BackGround.BorderSizePixel = 0 | |
| 711 | BackGround.Draggable = true | |
| 712 | BackGround.Position = UDim2.new(0, 0, 1, 0) | |
| 713 | BackGround.Size = UDim2.new(0, 250, 0, 299) | |
| 714 | ||
| 715 | Chill_Gui_Label.Name = "Chill_Gui_Label" | |
| 716 | Chill_Gui_Label.Parent = Header | |
| 717 | Chill_Gui_Label.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 718 | Chill_Gui_Label.BackgroundTransparency = 1 | |
| 719 | Chill_Gui_Label.BorderSizePixel = 0 | |
| 720 | Chill_Gui_Label.Draggable = true | |
| 721 | Chill_Gui_Label.Size = UDim2.new(0, 250, 0, 45) | |
| 722 | Chill_Gui_Label.Font = Enum.Font.Arcade | |
| 723 | Chill_Gui_Label.Text = "~»Chill Gui«~" | |
| 724 | Chill_Gui_Label.TextColor3 = Color3.new(1, 1, 1) | |
| 725 | Chill_Gui_Label.TextScaled = true | |
| 726 | Chill_Gui_Label.TextSize = 14 | |
| 727 | Chill_Gui_Label.TextWrapped = true | |
| 728 | ||
| 729 | Play_ID_Button.Name = "Play_ID_Button" | |
| 730 | Play_ID_Button.Parent = Header | |
| 731 | Play_ID_Button.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647) | |
| 732 | Play_ID_Button.BorderColor3 = Color3.new(0, 0, 0) | |
| 733 | Play_ID_Button.BorderSizePixel = 0 | |
| 734 | Play_ID_Button.Position = UDim2.new(0.0520000011, 0, 1.22222221, 0) | |
| 735 | Play_ID_Button.Size = UDim2.new(0, 68, 0, 35) | |
| 736 | Play_ID_Button.Font = Enum.Font.Arcade | |
| 737 | Play_ID_Button.Text = "Play ID" | |
| 738 | Play_ID_Button.TextColor3 = Color3.new(1, 1, 1) | |
| 739 | Play_ID_Button.TextSize = 20 | |
| 740 | Play_ID_Button.TextWrapped = true | |
| 741 | ||
| 742 | ID_Box.Name = "ID_Box" | |
| 743 | ID_Box.Parent = Header | |
| 744 | ID_Box.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647) | |
| 745 | ID_Box.BorderColor3 = Color3.new(0, 0, 0) | |
| 746 | ID_Box.BorderSizePixel = 0 | |
| 747 | ID_Box.Position = UDim2.new(0.356000006, 0, 1.22222221, 0) | |
| 748 | ID_Box.Size = UDim2.new(0, 140, 0, 35) | |
| 749 | ID_Box.Font = Enum.Font.Arcade | |
| 750 | ID_Box.Text = "ID here" | |
| 751 | ID_Box.TextColor3 = Color3.new(1, 1, 1) | |
| 752 | ID_Box.TextSize = 35 | |
| 753 | ID_Box.TextWrapped = true | |
| 754 | ||
| 755 | Set_Vol_Button.Name = "Set_Vol_Button" | |
| 756 | Set_Vol_Button.Parent = Header | |
| 757 | Set_Vol_Button.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647) | |
| 758 | Set_Vol_Button.BorderColor3 = Color3.new(0, 0, 0) | |
| 759 | Set_Vol_Button.BorderSizePixel = 0 | |
| 760 | Set_Vol_Button.Position = UDim2.new(0.0520000011, 0, 2.20000005, 0) | |
| 761 | Set_Vol_Button.Size = UDim2.new(0, 68, 0, 35) | |
| 762 | Set_Vol_Button.Font = Enum.Font.Arcade | |
| 763 | Set_Vol_Button.Text = "Set Vol" | |
| 764 | Set_Vol_Button.TextColor3 = Color3.new(1, 1, 1) | |
| 765 | Set_Vol_Button.TextSize = 20 | |
| 766 | Set_Vol_Button.TextWrapped = true | |
| 767 | ||
| 768 | Vol_Box.Name = "Vol_Box" | |
| 769 | Vol_Box.Parent = Header | |
| 770 | Vol_Box.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647) | |
| 771 | Vol_Box.BorderColor3 = Color3.new(0, 0, 0) | |
| 772 | Vol_Box.BorderSizePixel = 0 | |
| 773 | Vol_Box.Position = UDim2.new(0.356000006, 0, 2.20000005, 0) | |
| 774 | Vol_Box.Size = UDim2.new(0, 140, 0, 35) | |
| 775 | Vol_Box.Font = Enum.Font.Arcade | |
| 776 | Vol_Box.Text = "Volume" | |
| 777 | Vol_Box.TextColor3 = Color3.new(1, 1, 1) | |
| 778 | Vol_Box.TextSize = 35 | |
| 779 | Vol_Box.TextWrapped = true | |
| 780 | ||
| 781 | Set_Tpos_Button.Name = "Set_Tpos_Button" | |
| 782 | Set_Tpos_Button.Parent = Header | |
| 783 | Set_Tpos_Button.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647) | |
| 784 | Set_Tpos_Button.BorderColor3 = Color3.new(0, 0, 0) | |
| 785 | Set_Tpos_Button.BorderSizePixel = 0 | |
| 786 | Set_Tpos_Button.Position = UDim2.new(0.0520000011, 0, 3.24444437, 0) | |
| 787 | Set_Tpos_Button.Size = UDim2.new(0, 68, 0, 35) | |
| 788 | Set_Tpos_Button.Font = Enum.Font.Arcade | |
| 789 | Set_Tpos_Button.Text = "Set Tpos" | |
| 790 | Set_Tpos_Button.TextColor3 = Color3.new(1, 1, 1) | |
| 791 | Set_Tpos_Button.TextSize = 18 | |
| 792 | Set_Tpos_Button.TextWrapped = true | |
| 793 | ||
| 794 | Tpos_Box.Name = "Tpos_Box" | |
| 795 | Tpos_Box.Parent = Header | |
| 796 | Tpos_Box.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647) | |
| 797 | Tpos_Box.BorderColor3 = Color3.new(0, 0, 0) | |
| 798 | Tpos_Box.BorderSizePixel = 0 | |
| 799 | Tpos_Box.Position = UDim2.new(0.356000006, 0, 3.24444437, 0) | |
| 800 | Tpos_Box.Size = UDim2.new(0, 140, 0, 35) | |
| 801 | Tpos_Box.Font = Enum.Font.Arcade | |
| 802 | Tpos_Box.Text = "Time Position" | |
| 803 | Tpos_Box.TextColor3 = Color3.new(1, 1, 1) | |
| 804 | Tpos_Box.TextSize = 20 | |
| 805 | Tpos_Box.TextWrapped = true | |
| 806 | ||
| 807 | Set_Text_Button.Name = "Set_Text_Button" | |
| 808 | Set_Text_Button.Parent = Header | |
| 809 | Set_Text_Button.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647) | |
| 810 | Set_Text_Button.BorderColor3 = Color3.new(0, 0, 0) | |
| 811 | Set_Text_Button.BorderSizePixel = 0 | |
| 812 | Set_Text_Button.Position = UDim2.new(0.0600000024, 0, 4.22222233, 0) | |
| 813 | Set_Text_Button.Size = UDim2.new(0, 68, 0, 35) | |
| 814 | Set_Text_Button.Font = Enum.Font.Arcade | |
| 815 | Set_Text_Button.Text = "Set Text" | |
| 816 | Set_Text_Button.TextColor3 = Color3.new(1, 1, 1) | |
| 817 | Set_Text_Button.TextSize = 18 | |
| 818 | Set_Text_Button.TextWrapped = true | |
| 819 | ||
| 820 | Tpos_Box_2.Name = "Tpos_Box" | |
| 821 | Tpos_Box_2.Parent = Header | |
| 822 | Tpos_Box_2.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647) | |
| 823 | - | game.Players.LocalPlayer.Chatted:connect(function(msg) |
| 823 | + | |
| 824 | Tpos_Box_2.BorderSizePixel = 0 | |
| 825 | Tpos_Box_2.Position = UDim2.new(0.356000006, 0, 4.22222233, 0) | |
| 826 | Tpos_Box_2.Size = UDim2.new(0, 140, 0, 35) | |
| 827 | Tpos_Box_2.Font = Enum.Font.Arcade | |
| 828 | Tpos_Box_2.Text = "Text" | |
| 829 | Tpos_Box_2.TextColor3 = Color3.new(1, 1, 1) | |
| 830 | Tpos_Box_2.TextSize = 20 | |
| 831 | Tpos_Box_2.TextWrapped = true | |
| 832 | ||
| 833 | Toggle_Chat_Button.Name = "Toggle_Chat_Button" | |
| 834 | Toggle_Chat_Button.Parent = Header | |
| 835 | Toggle_Chat_Button.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647) | |
| 836 | Toggle_Chat_Button.BorderColor3 = Color3.new(0, 0, 0) | |
| 837 | Toggle_Chat_Button.BorderSizePixel = 0 | |
| 838 | Toggle_Chat_Button.Position = UDim2.new(0.0579999983, 0, 5.26666689, 0) | |
| 839 | Toggle_Chat_Button.Size = UDim2.new(0, 97, 0, 35) | |
| 840 | Toggle_Chat_Button.Font = Enum.Font.Arcade | |
| 841 | Toggle_Chat_Button.Text = "Toggle Chat" | |
| 842 | Toggle_Chat_Button.TextColor3 = Color3.new(1, 1, 1) | |
| 843 | Toggle_Chat_Button.TextSize = 20 | |
| 844 | Toggle_Chat_Button.TextWrapped = true | |
| 845 | ||
| 846 | Chat_Toggle_Label.Name = "Chat_Toggle_Label" | |
| 847 | Chat_Toggle_Label.Parent = Header | |
| 848 | Chat_Toggle_Label.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 849 | Chat_Toggle_Label.BackgroundTransparency = 0.89999997615814 | |
| 850 | Chat_Toggle_Label.BorderColor3 = Color3.new(1, 1, 1) | |
| 851 | Chat_Toggle_Label.Position = UDim2.new(0.540000021, 0, 5.26666689, 0) | |
| 852 | Chat_Toggle_Label.Size = UDim2.new(0, 94, 0, 35) | |
| 853 | Chat_Toggle_Label.Font = Enum.Font.Arcade | |
| 854 | Chat_Toggle_Label.Text = "~»False«~" | |
| 855 | Chat_Toggle_Label.TextColor3 = Color3.new(1, 1, 1) | |
| 856 | Chat_Toggle_Label.TextScaled = true | |
| 857 | Chat_Toggle_Label.TextSize = 14 | |
| 858 | Chat_Toggle_Label.TextWrapped = true | |
| 859 | ||
| 860 | Current_Song_Label.Name = "Current_Song_Label" | |
| 861 | Current_Song_Label.Parent = Header | |
| 862 | Current_Song_Label.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 863 | Current_Song_Label.BackgroundTransparency = 0.89999997615814 | |
| 864 | Current_Song_Label.BorderColor3 = Color3.new(1, 1, 1) | |
| 865 | Current_Song_Label.Position = UDim2.new(0.0520000011, 0, 6.64444447, 0) | |
| 866 | Current_Song_Label.Size = UDim2.new(0, 225, 0, 35) | |
| 867 | Current_Song_Label.Font = Enum.Font.Arcade | |
| 868 | Current_Song_Label.Text = "~»Current Song: None«~" | |
| 869 | Current_Song_Label.TextColor3 = Color3.new(1, 1, 1) | |
| 870 | Current_Song_Label.TextScaled = true | |
| 871 | Current_Song_Label.TextSize = 14 | |
| 872 | Current_Song_Label.TextWrapped = true | |
| 873 | ||
| 874 | Play_ID_Button.MouseButton1Down:Connect(function() | |
| 875 | if tonumber(ID_Box.Text) then | |
| 876 | Chillmusic:Stop() | |
| 877 | Chillmusic.SoundId='rbxassetid://'..tonumber(ID_Box.Text) | |
| 878 | Chillmusic:Play() | |
| 879 | currentsong = game:GetService("MarketplaceService"):GetProductInfo(tonumber(ID_Box.Text)).Name
| |
| 880 | text.Text = "~»Chill Af«~ Now Playing: "..currentsong | |
| 881 | Current_Song_Label.Text = "~»Current Song: "..currentsong.."«~" | |
| 882 | wait(4) | |
| 883 | text.Text = "~»Fell Apart AF«~" | |
| 884 | end | |
| 885 | end) | |
| 886 | local ischatting = false | |
| 887 | ||
| 888 | Set_Vol_Button.MouseButton1Down:Connect(function() | |
| 889 | ||
| 890 | Chillmusic.Volume = tonumber(Vol_Box.Text) | |
| 891 | end) | |
| 892 | ||
| 893 | Set_Tpos_Button.MouseButton1Down:Connect(function() | |
| 894 | ||
| 895 | Chillmusic.TimePosition = tonumber(Tpos_Box.Text) | |
| 896 | end) | |
| 897 | ||
| 898 | Set_Text_Button.MouseButton1Down:Connect(function() | |
| 899 | ||
| 900 | text.Text = "~»"..Tpos_Box_2.Text.."«~" | |
| 901 | end) | |
| 902 | ||
| 903 | Toggle_Chat_Button.MouseButton1Down:Connect(function() | |
| 904 | if ischatting == false then | |
| 905 | ischatting = true | |
| 906 | Chat_Toggle_Label.Text = "~»True«~" | |
| 907 | spawn(function() | |
| 908 | owner.Chatted:connect(function(msg) | |
| 909 | for i = 0, msg:len(), 1 do | |
| 910 | text.Text = "~»"..msg:sub(0, i).."«~" | |
| 911 | end | |
| 912 | wait(3) | |
| 913 | text.Text = "~»Fell Apart AF«~" | |
| 914 | end) | |
| 915 | end) | |
| 916 | else | |
| 917 | ischatting = false | |
| 918 | Chat_Toggle_Label.Text = "~»False«~" | |
| 919 | end | |
| 920 | end) |