From cb951017a803d2c50cb007a4afe9ef5e5cc0035a Mon Sep 17 00:00:00 2001 From: Bitl Date: Thu, 4 Nov 2021 08:44:02 -0700 Subject: [PATCH] Added gears to 3d Preview --- changelog.txt | 5 +- scripts/launcher/3DView/3DView.rbxl | 1986 +++++++++++++++++++++++---- scripts/launcher/3DView/CSView.lua | 17 +- 3 files changed, 1769 insertions(+), 239 deletions(-) diff --git a/changelog.txt b/changelog.txt index 521d875..66f8caa 100644 --- a/changelog.txt +++ b/changelog.txt @@ -26,10 +26,11 @@ Changes from Pre-Release 5: - Fixed a bug with the Health GUI and animations showing up in the 3D Preview. - Fixed the Illumina not having any sparkles on Sword Fights on the Heights IV. - Added the ability to switch weapon loadouts in the 3D Preview. - - 3 loadouts are available: + - 4 loadouts are available: Classic Weapons Sword Fights on the Heights Weapons Rise of the Killbots Weapons + Classic Gears - Sword weapons will now lunge upon click in the 3D Preview. - Implemented extended Splash functionality for the Stylish style. - Added support for the Stylish style in the Splash Tester. @@ -71,6 +72,8 @@ Changes from Pre-Release 5: %argstring% - Gets the default script arguments for a tag. - ClientScript will no longer load %args% as a variable. If %args% is detected in any way, the client will NOT use any tag except for . Use %argstring% if you need %args% as a variable. - The Client SDK now allows users to create tags for a directory relative to a client's directory. +- Fixed text wrapping issues with the Stylish style. +- Added Lua script support to the Asset SDK's downloader. Changes from 1.2.4.1: - The OBJ2MeshV1GUI, The Asset Localizer, and the Item SDK have been merged to form the Asset SDK! - Works with the Roblox Asset Delivery API! Note: Script assets wil have to be downloaded manually in order to be used in scripts. diff --git a/scripts/launcher/3DView/3DView.rbxl b/scripts/launcher/3DView/3DView.rbxl index d36e665..7c81a69 100644 --- a/scripts/launcher/3DView/3DView.rbxl +++ b/scripts/launcher/3DView/3DView.rbxl @@ -3,7 +3,6 @@ nil - true RBX1 28.400001481175423 @@ -22,10 +21,10 @@ Workspace null + true - true 0 0 @@ -42,11 +41,11 @@ Base null + true true - true -0.5 0.5 0 @@ -105,6 +104,7 @@ 0 0 + true 1 18 @@ -117,7 +117,6 @@ false true - true -0.5 0.5 0 @@ -179,6 +178,7 @@ 0 0 + true 1 6 @@ -190,7 +190,6 @@ true - true -0.5 0.5 0 @@ -249,6 +248,7 @@ 0 0 + true 1 16 @@ -260,7 +260,6 @@ true - true -0.5 0.5 0 @@ -319,6 +318,7 @@ 0 0 + true 1 16 @@ -330,7 +330,6 @@ true - true -0.5 0.5 0 @@ -389,6 +388,7 @@ 0 0 + true 1 16 @@ -400,7 +400,6 @@ true - true -0.5 0.5 0 @@ -459,6 +458,7 @@ 0 0 + true 1 16 @@ -470,22 +470,21 @@ - true null 0 - -12.2905922 - 28.6727867 - -23.4560814 - -0.947292984 - 0.171669155 - -0.270491689 - -0 - 0.84431392 - 0.535848796 - 0.320368648 - 0.507605791 - -0.799812615 + -9.47757721 + 27.2246666 + -20.2404652 + -0.979976177 + 0.115348175 + -0.162301093 + 7.45058149e-009 + 0.815111816 + 0.579303741 + 0.199115172 + 0.567703843 + -0.798790038 -6.88076401 @@ -502,11 +501,11 @@ 1 Camera + true - true false Startup @@ -517,67 +516,73 @@ end end + true + + + + + CurPlayerAnim + none + true - + - true Run Service + true - + - true Instance + true - + - true ContentFilter + true - + - true Instance + true - + - true 12 Players + true - + - true StarterPack + true - + - true StarterGui true + true - + - true 3DViewUI + true - + true - true false 4279308561 0.600000024 4279308561 0 - false 2 3 BaseTransparency @@ -604,10 +609,10 @@ end 1 true 1 + true - + - true false LocalScript @@ -622,19 +627,18 @@ end end script.Parent.MouseButton1Down:connect(onClicked) + true - + true - true false 4279308561 0.600000024 4279308561 0 - false 2 3 BackgroundColor @@ -661,10 +665,10 @@ script.Parent.MouseButton1Down:connect(onClicked) 1 true 1 + true - + - true false LocalScript @@ -764,19 +768,18 @@ script.Parent.MouseButton1Down:connect(onClicked) end script.Parent.MouseButton1Down:connect(onClicked) + true - + true - true false 4279308561 0.600000024 4279308561 0 - false 2 3 PoseRunTool @@ -803,10 +806,10 @@ script.Parent.MouseButton1Down:connect(onClicked) 1 true 1 + true - + - true false LocalScript @@ -862,19 +865,18 @@ function onClicked() end script.Parent.MouseButton1Down:connect(onClicked) + true - + true - true false 4279308561 0.600000024 4279308561 0 - false 2 3 ChangeWalkSpeed @@ -901,10 +903,10 @@ script.Parent.MouseButton1Down:connect(onClicked) 1 true 1 + true - + - true false LocalScript @@ -927,19 +929,18 @@ script.Parent.MouseButton1Down:connect(onClicked) end script.Parent.MouseButton1Down:connect(onClicked) + true - + true - true false 4279308561 0.600000024 4279308561 0 - false 2 3 PoseStandTool @@ -966,10 +967,10 @@ script.Parent.MouseButton1Down:connect(onClicked) 1 true 1 + true - + - true false LocalScript @@ -1011,19 +1012,18 @@ function onClicked() end script.Parent.MouseButton1Down:connect(onClicked) + true - + true - true false 4279308561 0.600000024 4279308561 0 - false 2 3 PoseStand @@ -1050,10 +1050,10 @@ script.Parent.MouseButton1Down:connect(onClicked) 1 true 1 + true - + - true false LocalScript @@ -1092,19 +1092,18 @@ function onClicked() end script.Parent.MouseButton1Down:connect(onClicked) + true - + true - true false 4279308561 0.600000024 4279308561 0 - false 2 3 PoseLunge @@ -1131,10 +1130,10 @@ script.Parent.MouseButton1Down:connect(onClicked) 1 true 1 + true - + - true false LocalScript @@ -1182,19 +1181,18 @@ function onClicked() end script.Parent.MouseButton1Down:connect(onClicked) + true - + true - true false 4279308561 0.600000024 4279308561 0 - false 2 3 PoseRun @@ -1221,10 +1219,10 @@ script.Parent.MouseButton1Down:connect(onClicked) 1 true 1 + true - + - true false LocalScript @@ -1280,19 +1278,18 @@ function onClicked() end script.Parent.MouseButton1Down:connect(onClicked) + true - + true - true false 4279308561 0.600000024 4279308561 0 - false 2 3 PoseSit @@ -1319,10 +1316,10 @@ script.Parent.MouseButton1Down:connect(onClicked) 1 true 1 + true - + - true false LocalScript @@ -1368,19 +1365,18 @@ function onClicked() end script.Parent.MouseButton1Down:connect(onClicked) + true - + true - true false 4279308561 0.600000024 4279308561 0 - false 2 3 PoseZombie @@ -1407,10 +1403,10 @@ script.Parent.MouseButton1Down:connect(onClicked) 1 true 1 + true - + - true false LocalScript @@ -1464,19 +1460,18 @@ function onClicked() end script.Parent.MouseButton1Down:connect(onClicked) + true - + true - true false 4279308561 0.600000024 4279308561 0 - false 2 3 TimeOfDay @@ -1503,10 +1498,10 @@ script.Parent.MouseButton1Down:connect(onClicked) 1 true 1 + true - + - true false LocalScript @@ -1537,19 +1532,18 @@ script.Parent.MouseButton1Down:connect(onClicked) end script.Parent.MouseButton1Down:connect(onClicked) + true - + true - true false 4279308561 0.600000024 4279308561 0 - false 2 3 PoseJump @@ -1576,10 +1570,10 @@ script.Parent.MouseButton1Down:connect(onClicked) 1 true 1 + true - + - true false LocalScript @@ -1625,19 +1619,18 @@ function onClicked() end script.Parent.MouseButton1Down:connect(onClicked) + true - + true - true false 4279308561 0.600000024 4279308561 0 - false 2 3 ToggleCelestialBodies @@ -1664,10 +1657,10 @@ script.Parent.MouseButton1Down:connect(onClicked) 1 true 1 + true - + - true false LocalScript @@ -1680,19 +1673,18 @@ script.Parent.MouseButton1Down:connect(onClicked) end script.Parent.MouseButton1Down:connect(onClicked) + true - + true - true false 4279308561 0.600000024 4279308561 0 - false 2 3 ToolLoadout @@ -1719,10 +1711,10 @@ script.Parent.MouseButton1Down:connect(onClicked) 1 true 1 + true - + - true false LocalScript @@ -1766,8 +1758,17 @@ script.Parent.MouseButton1Down:connect(onClicked) trowel.Parent = player.Backpack game.Lighting.Inventory.Value = 2 elseif game.Lighting.Inventory.Value == 2 then - --none + --gears + for _, newtool in ipairs(game.Lighting.Gears:GetChildren()) do + if newtool:IsA("Tool") then + copiedtool = newtool:Clone() + copiedtool.Parent = player.Backpack + end + end game.Lighting.Inventory.Value = 3 + elseif game.Lighting.Inventory.Value == 3 then + --none + game.Lighting.Inventory.Value = 4 else --classic for _, newtool in ipairs(game.Lighting.ClassicWeapons:GetChildren()) do @@ -1781,92 +1782,86 @@ script.Parent.MouseButton1Down:connect(onClicked) end script.Parent.MouseButton1Down:connect(onClicked) + true - + 0 - true 10 1 Soundscape 1 + true - + - true CollectionService + true - + - true PhysicsService + true - + - true BadgeService + true - + - true Geometry + true - + - true RenderHooksService + true - + - true SocialService + true - + - true 1000 Debris + true - + - true Instance + true - + - true Instance - - - - - true - CookiesService + true - true Selection + true 4288453788 - true 1 4278190080 4278190080 @@ -1874,10 +1869,10 @@ script.Parent.MouseButton1Down:connect(onClicked) Lighting 4291809236 14:00:00 + true - true false Sky rbxasset://Sky/null_plainsky512_bk.jpg @@ -1887,25 +1882,25 @@ script.Parent.MouseButton1Down:connect(onClicked) rbxasset://Sky/null_plainsky512_rt.jpg rbxasset://Sky/null_plainsky512_up.jpg 3000 + true - true Hour 14 + true - true Minute 0 + true - true 0 0 @@ -1922,10 +1917,10 @@ script.Parent.MouseButton1Down:connect(onClicked) ClassicWeapons null + true - true true 0 @@ -1943,11 +1938,11 @@ script.Parent.MouseButton1Down:connect(onClicked) ClassicPaintballGun rbxasset://Textures/PaintballIcon.png + true false - true -0.5 0.5 0 @@ -2006,6 +2001,7 @@ script.Parent.MouseButton1Down:connect(onClicked) 0 0 + true 1 1 @@ -2015,7 +2011,6 @@ script.Parent.MouseButton1Down:connect(onClicked) - true 2 2 rbxasset://Fonts/PaintballGun.mesh @@ -2037,13 +2032,13 @@ script.Parent.MouseButton1Down:connect(onClicked) 1 1 + true - true true 0 @@ -2061,11 +2056,11 @@ script.Parent.MouseButton1Down:connect(onClicked) ClassicSlingshot rbxasset://../../../shareddata/Textures/Slingshot.png + true false - true -0.5 0.5 0 @@ -2124,6 +2119,7 @@ script.Parent.MouseButton1Down:connect(onClicked) 0 0 + true 1 2 @@ -2133,7 +2129,6 @@ script.Parent.MouseButton1Down:connect(onClicked) - true 2 2 rbxasset://Fonts/slingshot.mesh @@ -2155,13 +2150,13 @@ script.Parent.MouseButton1Down:connect(onClicked) 1 1 + true - true true 0 @@ -2179,11 +2174,11 @@ script.Parent.MouseButton1Down:connect(onClicked) ClassicSuperball rbxasset://Textures/Superball.png + true false - true -0.5 0.5 0 @@ -2242,6 +2237,7 @@ script.Parent.MouseButton1Down:connect(onClicked) 0 0 + true 0 2 @@ -2253,7 +2249,6 @@ script.Parent.MouseButton1Down:connect(onClicked) - true true -1 @@ -2271,11 +2266,11 @@ script.Parent.MouseButton1Down:connect(onClicked) ClassicRPG rbxasset://Textures/Rocket.png + true false - true -0.5 0.5 0 @@ -2334,6 +2329,7 @@ script.Parent.MouseButton1Down:connect(onClicked) 0 0 + true 1 4 @@ -2343,7 +2339,6 @@ script.Parent.MouseButton1Down:connect(onClicked) - true 2 2 rbxasset://Fonts/rocketlauncher.mesh @@ -2365,13 +2360,13 @@ script.Parent.MouseButton1Down:connect(onClicked) 1 1 + true - true true 0 @@ -2389,11 +2384,11 @@ script.Parent.MouseButton1Down:connect(onClicked) ClassicSword rbxasset://../../../shareddata/Textures/Sword128.png + true false - true -0.5 0.5 0 @@ -2452,6 +2447,7 @@ script.Parent.MouseButton1Down:connect(onClicked) 0 0 + true 1 1 @@ -2461,7 +2457,6 @@ script.Parent.MouseButton1Down:connect(onClicked) - true 2 2 rbxasset://Fonts/sword.mesh @@ -2483,12 +2478,12 @@ script.Parent.MouseButton1Down:connect(onClicked) 1 1 + true - true false SwordScript @@ -2517,30 +2512,20 @@ function onActivated() end end -function onEquipped() - print("e") -end - -function onUnequipped() - print("u") -end - -script.Parent.Activated:connect(onActivated) -script.Parent.Equipped:connect(onEquipped) -script.Parent.Unequipped:connect(onUnequipped) +script.Parent.Activated:connect(onActivated) + true - true Lunged false + true - true true 0 @@ -2558,11 +2543,11 @@ script.Parent.Unequipped:connect(onUnequipped) ClassicTimebomb rbxasset://Textures/Bomb.png + true false - true -0.5 0.5 0 @@ -2621,6 +2606,7 @@ script.Parent.Unequipped:connect(onUnequipped) 0 0 + true 0 2 @@ -2630,7 +2616,6 @@ script.Parent.Unequipped:connect(onUnequipped) - true 2 2 rbxasset://Fonts/timebomb.mesh @@ -2652,13 +2637,13 @@ script.Parent.Unequipped:connect(onUnequipped) 1 1 + true - true true 0 @@ -2676,11 +2661,11 @@ script.Parent.Unequipped:connect(onUnequipped) ClassicTrowel rbxasset://Textures/Wall.png + true false - true -0.5 0.5 2 @@ -2739,6 +2724,7 @@ script.Parent.Unequipped:connect(onUnequipped) 0 0 + true 1 1 @@ -2748,7 +2734,6 @@ script.Parent.Unequipped:connect(onUnequipped) - true 2 2 rbxasset://Fonts/trowel.mesh @@ -2770,6 +2755,7 @@ script.Parent.Unequipped:connect(onUnequipped) 1 1 + true @@ -2777,14 +2763,13 @@ script.Parent.Unequipped:connect(onUnequipped) - true Inventory 0 + true - true 0 0 @@ -2801,10 +2786,10 @@ script.Parent.Unequipped:connect(onUnequipped) SFOTHWeapons null + true - true true 0 @@ -2822,11 +2807,11 @@ script.Parent.Unequipped:connect(onUnequipped) Darkheart + true false - true -0.5 0.5 0 @@ -2885,6 +2870,7 @@ script.Parent.Unequipped:connect(onUnequipped) 0 0 + true 1 1 @@ -2894,7 +2880,6 @@ script.Parent.Unequipped:connect(onUnequipped) - true 2 2 rbxasset://fonts/sword.mesh @@ -2916,12 +2901,12 @@ script.Parent.Unequipped:connect(onUnequipped) 0 0 + true - true false SwordScript @@ -2951,19 +2936,19 @@ function onActivated() end script.Parent.Activated:connect(onActivated) + true - true Lunged false + true - true true 0 @@ -2981,11 +2966,11 @@ script.Parent.Activated:connect(onActivated) Firebrand + true false - true -0.5 0.5 0 @@ -3044,6 +3029,7 @@ script.Parent.Activated:connect(onActivated) 0 0 + true 1 1 @@ -3053,7 +3039,6 @@ script.Parent.Activated:connect(onActivated) - true 2 2 rbxasset://fonts/sword.mesh @@ -3075,19 +3060,19 @@ script.Parent.Activated:connect(onActivated) 0 0 + true - true Lunged false + true - true false SwordScript @@ -3117,12 +3102,12 @@ function onActivated() end script.Parent.Activated:connect(onActivated) + true - true true 0 @@ -3140,11 +3125,11 @@ script.Parent.Activated:connect(onActivated) Ghostwalker + true false - true -0.5 0.5 0 @@ -3203,6 +3188,7 @@ script.Parent.Activated:connect(onActivated) 0 0 + true 1 1 @@ -3212,7 +3198,6 @@ script.Parent.Activated:connect(onActivated) - true 2 2 rbxasset://fonts/sword.mesh @@ -3234,19 +3219,19 @@ script.Parent.Activated:connect(onActivated) 1 0 + true - true Lunged false + true - true false SwordScript @@ -3276,12 +3261,12 @@ function onActivated() end script.Parent.Activated:connect(onActivated) + true - true true 0 @@ -3299,11 +3284,11 @@ script.Parent.Activated:connect(onActivated) Ice Dagger + true false - true -0.5 0.5 0 @@ -3362,6 +3347,7 @@ script.Parent.Activated:connect(onActivated) 0 0 + true 1 1 @@ -3371,7 +3357,6 @@ script.Parent.Activated:connect(onActivated) - true 2 2 rbxasset://fonts/sword.mesh @@ -3393,12 +3378,12 @@ script.Parent.Activated:connect(onActivated) 0 1 + true - true false SwordScript @@ -3428,19 +3413,19 @@ function onActivated() end script.Parent.Activated:connect(onActivated) + true - true Lunged false + true - true true 0 @@ -3458,11 +3443,11 @@ script.Parent.Activated:connect(onActivated) Illumina + true false - true -0.5 0.5 0 @@ -3521,6 +3506,7 @@ script.Parent.Activated:connect(onActivated) 0 0 + true 1 1 @@ -3530,7 +3516,6 @@ script.Parent.Activated:connect(onActivated) - true 2 2 rbxasset://fonts/sword.mesh @@ -3552,20 +3537,20 @@ script.Parent.Activated:connect(onActivated) 1 0 + true - true true Sparkles 4291559628 + true - true false SwordScript @@ -3595,19 +3580,19 @@ function onActivated() end script.Parent.Activated:connect(onActivated) + true - true Lunged false + true - true true 0 @@ -3625,11 +3610,11 @@ script.Parent.Activated:connect(onActivated) Venomshank + true false - true -0.5 0.5 0 @@ -3688,6 +3673,7 @@ script.Parent.Activated:connect(onActivated) 0 0 + true 1 1 @@ -3697,7 +3683,6 @@ script.Parent.Activated:connect(onActivated) - true 2 2 rbxasset://fonts/sword.mesh @@ -3719,12 +3704,12 @@ script.Parent.Activated:connect(onActivated) 1 0.300000012 + true - true false SwordScript @@ -3754,19 +3739,19 @@ function onActivated() end script.Parent.Activated:connect(onActivated) + true - true Lunged false + true - true true 0 @@ -3784,11 +3769,11 @@ script.Parent.Activated:connect(onActivated) Ice Dagger (Blue) + true false - true -0.5 0.5 0 @@ -3847,6 +3832,7 @@ script.Parent.Activated:connect(onActivated) 0 0 + true 1 1 @@ -3856,7 +3842,6 @@ script.Parent.Activated:connect(onActivated) - true 2 2 rbxasset://fonts/sword.mesh @@ -3878,12 +3863,12 @@ script.Parent.Activated:connect(onActivated) 0 1 + true - true false SwordScript @@ -3913,19 +3898,19 @@ function onActivated() end script.Parent.Activated:connect(onActivated) + true - true Lunged false + true - true true 0 @@ -3943,11 +3928,11 @@ script.Parent.Activated:connect(onActivated) Windforce + true false - true -0.5 0.5 0 @@ -4006,6 +3991,7 @@ script.Parent.Activated:connect(onActivated) 0 0 + true 1 1 @@ -4015,7 +4001,6 @@ script.Parent.Activated:connect(onActivated) - true 2 2 rbxasset://fonts/sword.mesh @@ -4037,12 +4022,12 @@ script.Parent.Activated:connect(onActivated) 1 0 + true - true false SwordScript @@ -4072,20 +4057,20 @@ function onActivated() end script.Parent.Activated:connect(onActivated) + true - true Lunged false + true - true 0 0 @@ -4102,10 +4087,10 @@ script.Parent.Activated:connect(onActivated) ROTKBWeapons null + true - true true 0 @@ -4123,11 +4108,11 @@ script.Parent.Activated:connect(onActivated) Shotgun rbxasset://../../../shareddata/RiseOfTheKillbots/textures/shotgun_icon.png + true false - true -0.5 0.5 0 @@ -4186,6 +4171,7 @@ script.Parent.Activated:connect(onActivated) 0 0 + true 1 1 @@ -4195,7 +4181,6 @@ script.Parent.Activated:connect(onActivated) - true 2 2 rbxasset://../../../shareddata/RiseOfTheKillbots/fonts/Shotgun.mesh @@ -4217,13 +4202,13 @@ script.Parent.Activated:connect(onActivated) 97 97 + true - true true 0 @@ -4241,11 +4226,11 @@ script.Parent.Activated:connect(onActivated) Pistol rbxasset://../../../shareddata/RiseOfTheKillbots/textures/pistol_icon.png + true false - true -0.5 0.5 0 @@ -4304,6 +4289,7 @@ script.Parent.Activated:connect(onActivated) 0 0 + true 1 1 @@ -4313,7 +4299,6 @@ script.Parent.Activated:connect(onActivated) - true 2 2 rbxasset://../../../shareddata/RiseOfTheKillbots/fonts/pistol.mesh @@ -4335,6 +4320,7 @@ script.Parent.Activated:connect(onActivated) 97 97 + true @@ -4342,28 +4328,1566 @@ script.Parent.Activated:connect(onActivated) - true CameraType 0 + true + + + + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 1 + + Gears + null + true + + + + true + + 0 + 0 + -1.70000005 + 0 + 0 + 1 + 1 + 0 + 0 + 0 + 1 + 0 + + KnightsSword + rbxasset://textures/BrigandsSword.png + true + + + + false + -0.5 + 0.5 + 0 + 0 + -0.5 + 0.5 + 0 + 0 + 199 + + 28.4997463 + 7.60000753 + 52.0000114 + -3.42285489e-008 + 0 + -1 + 0 + 1 + 0 + 1 + 0 + -3.42285489e-008 + + true + 0.5 + 2 + 0.300000012 + -0.5 + 0.5 + 0 + 0 + -0.5 + 0.5 + 0 + 0 + false + 256 + Handle + 0.400000006 + -0.5 + 0.5 + 0 + 0 + + 0 + 0 + 0 + + -0.5 + 0.5 + 0 + 0 + 0 + + 0 + 0 + 0 + + true + 1 + + 1 + 0.800000012 + 4 + + + + + 2 + 2 + rbxasset://fonts/BrigandsSwordMesh.mesh + 5 + Mesh + + 0 + 0 + 0 + + + 1.70000005 + 1.70000005 + 1.70000005 + + rbxasset://textures/BrigandsSwordTex.png + + 1 + 1 + 1 + + true + + + + + + Lunged + false + true + + + + + false + + SwordScript + -------- OMG HAX +Tool = script.Parent + +function swordUp() + Tool.GripForward = Vector3.new(-1,0,0) + Tool.GripRight = Vector3.new(0,1,0) + Tool.GripUp = Vector3.new(0,0,1) +end + +function swordOut() + Tool.GripForward = Vector3.new(0,0,1) + Tool.GripRight = Vector3.new(0,-1,0) + Tool.GripUp = Vector3.new(-1,0,0) +end + +function onActivated() + if Tool.Lunged.Value == false then + swordOut() + Tool.Lunged.Value = true + else + swordUp() + Tool.Lunged.Value = false + end +end + +script.Parent.Activated:connect(onActivated) + true + + + + + + true + + 0.5 + -0.100000001 + 0 + 0 + 0 + 1 + 0 + 1 + -0 + -1 + 0 + 0 + + Cheezburger + rbxasset://textures/Cheezburger.png + true + + + + false + -0.5 + 0.5 + 0 + 0 + -0.5 + 0.5 + 0 + 0 + 1002 + + -0.5 + 0.800000012 + -19.5 + -1 + 0 + -0 + -0 + 1 + -0 + -0 + 0 + -1 + + true + 0.5 + 2 + 0.300000012 + -0.5 + 0.5 + 0 + 0 + -0.5 + 0.5 + 0 + 0 + false + 256 + Handle + 0 + -0.5 + 0.5 + 0 + 0 + + 0 + 0 + 0 + + -0.5 + 0.5 + 0 + 0 + 0 + + 0 + 0 + 0 + + true + 1 + + 1 + 0.800000012 + 1 + + + + + 2 + 2 + rbxasset://fonts/CheezburgerMesh.mesh + 5 + Mesh + + 0 + 0 + 0 + + + 1 + 1 + 1 + + rbxasset://textures/CheezburgerTex.png + + 1 + 1 + 1 + + true + + + + + + false + + SandwichScript + -------- OMG HAX +Tool = script.Parent + +function burgerIdle() + Tool.GripForward = Vector3.new(-1, 0, 0) + Tool.GripPos = Vector3.new(-.5, -.1, 0) + Tool.GripRight = Vector3.new(0, 0, 1) + Tool.GripUp = Vector3.new(0,1,0) +end + +function burgerEat() + Tool.GripForward = Vector3.new(-.981, .196, 0) + Tool.GripPos = Vector3.new(-.5, -0.6, -1.5) + Tool.GripRight = Vector3.new(0, -0, -1) + Tool.GripUp = Vector3.new(0.196, .981, 0) +end + +function onActivated() + if Tool.Eat.Value == false then + burgerEat() + Tool.Eat.Value = true + else + burgerIdle() + Tool.Eat.Value = false + end +end + +script.Parent.Activated:connect(onActivated) + true + + + + + Eat + false + true + + + + + + true + + -0.600000024 + 0 + 0.699999988 + -0.00347340619 + 0.928545654 + 0.371201903 + -0.99995625 + 0 + -0.00935677905 + -0.00868819654 + -0.371218145 + 0.928505063 + + WhiteNinjaStar + rbxasset://textures/NinjaStar.png + true + + + + false + -0.5 + 0.5 + 0 + 0 + -0.5 + 0.5 + 0 + 0 + 194 + + 11.5 + 9.79435539 + 93.5 + 1 + -1.16600587e-017 + 6.05396395e-022 + 1.16600587e-017 + 1 + -1.16603532e-017 + -6.05396395e-022 + 1.16603532e-017 + 1 + + true + 0.5 + 2 + 0.300000012 + -0.5 + 0.5 + 0 + 0 + -0.5 + 0.5 + 0 + 0 + true + 256 + Handle + 0 + -0.5 + 0.5 + 0 + 0 + + 0 + 0 + 0 + + -0.5 + 0.5 + 0 + 0 + 0 + + 0 + 0 + 0 + + true + 1 + + 1 + 0.400000006 + 1 + + + + + 2 + 2 + rbxasset://fonts/NinjaStarMesh.mesh + 5 + Mesh + + 0 + 0 + 0 + + + 3 + 3 + 3 + + rbxasset://textures/NinjaStarTex.png + + 1 + 1 + 1 + + true + + + + + + + true + + 0 + 0 + 1 + -1 + 0 + -0 + 0 + 1 + 0 + 0 + 0 + -1 + + GravityCoil + rbxasset://textures/Coil.png + true + + + + false + -0.5 + 0.5 + 0 + 0 + -0.5 + 0.5 + 0 + 0 + 1002 + + -0.437734604 + 0.689841628 + -3.05175781e-005 + -0.999999523 + -9.04471017e-006 + 2.48451997e-005 + -8.99407678e-006 + 1 + -1.47936089e-005 + -2.47880726e-005 + -1.48334029e-005 + -1.00000012 + + true + 0.5 + 2 + 0.300000012 + -0.5 + 0.5 + 0 + 0 + -0.5 + 0.5 + 0 + 0 + true + 256 + Handle + 0 + -0.5 + 0.5 + 0 + 0 + + 0 + 0 + 0 + + -0.5 + 0.5 + 0 + 0 + 0 + + 0 + 0 + 0 + + true + 1 + + 1 + 1.20000005 + 2 + + + + + 2 + 2 + rbxasset://fonts/CoilMesh.mesh + 5 + Mesh + + 0 + 0 + 0 + + + 0.699999988 + 0.699999988 + 0.699999988 + + rbxasset://textures/CoilTex.png + + 1 + 1 + 1 + + true + + + + + + + true + + 0.0299999993 + 0 + 0 + 0.217036352 + 0 + 0.976163507 + 0 + 1 + -0 + -0.976163507 + 0 + 0.217036352 + + BloxyCola + rbxasset://textures/BloxyCola.png + true + + + + false + -0.5 + 0.5 + 0 + 0 + -0.5 + 0.5 + 0 + 0 + 1002 + + 24.562252 + 11.4898558 + 59.4999733 + -0.999999523 + -9.04471017e-006 + 2.48451997e-005 + -8.99407678e-006 + 1 + -1.47936089e-005 + -2.47880726e-005 + -1.48334029e-005 + -1.00000012 + + true + 0.5 + 2 + 0.300000012 + -0.5 + 0.5 + 0 + 0 + -0.5 + 0.5 + 0 + 0 + true + 256 + Handle + 0 + -0.5 + 0.5 + 0 + 0 + + 0 + 0 + 0 + + -0.5 + 0.5 + 0 + 0 + 0 + + 0 + 0 + 0 + + true + 1 + + 1 + 1.20000005 + 1 + + + + + 2 + 2 + rbxasset://fonts/BloxyColaMesh.mesh + 5 + Mesh + + 0 + 0 + 0 + + + 1.20000005 + 1.20000005 + 1.20000005 + + rbxasset://textures/BloxyColaTex.png + + 1 + 1 + 1 + + true + + + + + + false + + ColaScript + -------- OMG HAX +Tool = script.Parent + +function colaIdle() + Tool.GripForward = Vector3.new(-.976,0,-0.217) + Tool.GripPos = Vector3.new(0.03,0,0) + Tool.GripRight = Vector3.new(.217,0,-.976) + Tool.GripUp = Vector3.new(0,1,0) +end + +function colaDrink() + Tool.GripForward = Vector3.new(0,-.759,-.651) + Tool.GripPos = Vector3.new(1.5,-.5,.3) + Tool.GripRight = Vector3.new(1,0,0) + Tool.GripUp = Vector3.new(0,.651,-.759) +end + +function onActivated() + if Tool.Drink.Value == false then + colaDrink() + Tool.Drink.Value = true + else + colaIdle() + Tool.Drink.Value = false + end +end + +script.Parent.Activated:connect(onActivated) + true + + + + + Drink + false + true + + + + + + true + + 0 + 0 + -2 + 0 + -1 + -0 + -1 + 0 + -0 + 0 + 0 + -1 + + EnergySword + rbxasset://textures/EnergySword.png + true + + + + false + -0.5 + 0.5 + 0 + 0 + -0.5 + 0.5 + 0 + 0 + 1020 + + -22 + 12.7999868 + -16 + -0 + 1 + -0 + -0 + 0 + -1 + -1 + 0 + -0 + + true + 0.5 + 2 + 0.300000012 + -0.5 + 0.5 + 0 + 0 + -0.5 + 0.5 + 0 + 0 + true + 256 + Handle + 0 + -0.5 + 0.5 + 0 + 0 + + 0 + 0 + 0 + + -0.5 + 0.5 + 0 + 0 + 0 + + 0 + 0 + 0 + + true + 1 + + 1 + 0.800000012 + 4 + + + + + 2 + 2 + rbxasset://fonts/EnergySwordMesh.mesh + 5 + Mesh + + 0 + 0 + 0 + + + 1.39999998 + 1.39999998 + 1.39999998 + + rbxasset://textures/EnergySwordTex.png + + 1 + 1 + 0 + + true + + + + + true + Sparkles + 4278196480 + true + + + + + + + true + + 0 + -1 + 0 + 1 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 1 + + BanHammer + rbxasset://textures/Banhammer.png + true + + + + false + -0.5 + 0.5 + 0 + 0 + -0.5 + 0.5 + 4 + 0 + 194 + + 41.5 + 19.3999996 + 65.5 + 1 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 1 + + true + 0.5 + 1 + 0.300000012 + -0.5 + 0.5 + 0 + 0 + -0.5 + 0.5 + 0 + 0 + true + 256 + Handle + 0 + -0.5 + 0.5 + 0 + 0 + + 0 + 0 + 0 + + -0.5 + 0.5 + 3 + 0 + 0 + + 0 + 0 + 0 + + true + 1 + + 1 + 6 + 1 + + + + + 2 + 2 + rbxasset://fonts/BanhammerMesh.mesh + 5 + Mesh + + 0 + 0 + 0 + + + 0.5 + 0.5 + 0.5 + + rbxasset://textures/BanhammerTex.png + + 1 + 1 + 1 + + true + + + + + + false + + _Main + Tool = script.Parent +--player +player = nil +--save shoulders +RSH, LSH = nil, nil +--grip +GRP = nil +--welds +RW, LW = Instance.new("Weld"), Instance.new("Weld") + +function WaitForChild(obj, ch_n) + local t = time() + while not obj:FindFirstChild(ch_n) and time() - t < 10 do wait(0.1) end + return obj:FindFirstChild(ch_n) +end + +--onselected, save shoulders and get player +script.Parent.Equipped:connect(function() + player = game.Players:playerFromCharacter(script.Parent.Parent) + local ch = script.Parent.Parent + WaitForChild(ch, "Torso") + RSH = WaitForChild(ch.Torso, "Right Shoulder") + LSH = WaitForChild(ch.Torso, "Left Shoulder") + GRP = WaitForChild(ch["Right Arm"], "RightGrip") + _G.Grip = GRP + -- + RSH.Part1 = nil + LSH.Part1 = nil + -- + RW.Part0 = ch.Torso + RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) + RW.C1 = CFrame.new(0, 0.5, 0) + RW.Part1 = ch["Right Arm"] + RW.Parent = ch.Torso + _G.R = RW + -- + LW.Part0 = ch.Torso + LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) + LW.C1 = CFrame.new(0, 0.5, 0) + LW.Part1 = ch["Left Arm"] + LW.Parent = ch.Torso + _G.L = LW + -- + GRP.C0 = CFrame.new(0, -1, 0) * CFrame.fromEulerAnglesXYZ(-1, 0, 0) + --Bring_Arm_Up animation + for i = 0, 1, 0.05 do + wait() + RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.3*i, 0, -0.5*i) + LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.7*i, 0, 0.8*i) + LW.C1 = CFrame.new(-0.3*i, 0.5+1.2*i, 0) + end + --put in grip + wait() + local rg = (ch["Right Arm"]:FindFirstChild("RightGrip") or GRP) + if rg ~= GRP then + GRP.Parent = ch["Right Arm"] + rg:remove() + end +end) + +--griptcf = CFrame.new(0, -1, 0) * CFrame.fromEulerAnglesXYZ(-math.pi/2+0.5, 0, 0) + +script.Parent.Unequipped:connect(function() + local pl = player + --Bring_Arm_Down animation + for i = 1, 0, -0.05 do + wait() + RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.3*i, 0, -0.5*i) + LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.7*i, 0, 0.8*i) + LW.C1 = CFrame.new(-0.3*i, 0.5+1.2*i, 0) + end + RW.Parent = nil + LW.Parent = nil + RSH.Part1 = pl.Character["Right Arm"] + LSH.Part1 = pl.Character["Left Arm"] +end) + +function HomeRun() + for i = 0, 1, 0.1 do + if Tool.CurAnim.Value ~= "homerun" then return end + wait() + RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.3+1.2*i, -0.5*i, -0.5+i) + --R.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.5, -0.5, 0.5) + LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -0.5*i) * CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) + --L.C0 = CFrame.new(-1.0, 0.5, -0.5) * CFrame.fromEulerAnglesXYZ(1.7, 0, 1) + end + ---------------------------------------- + for i = 0, 1, 0.2 do + wait() + RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.5, -0.5-1.7*i, 0.5+0.5*i) + --R.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.5, -2.2, 1) + LW.C0 = CFrame.new(-1-0.5*i, 0.5, -0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8-1.2*i) + LW.C1 = CFrame.new(0, 0.5-i, 0) + GRP.C0 = CFrame.new(0, -1, 0) * CFrame.fromEulerAnglesXYZ(-1-2*i, 0, 0) + end + for i = 0, 1, 0.2 do + wait() + RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.5, -2.2-0.6*i, 1) + end + wait(0.1) + -------------------------------------- + for i = 0, 1, 0.1 do + wait() + RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.5-1.2*i, -2.8+2.8*i, 1-1.5*i) + --RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) + LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.7, 0, -0.4+1.2*i) + LW.C1 = CFrame.new(0, -0.5+i*2, 0) + --LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) + GRP.C0 = CFrame.new(0, -1, 0) * CFrame.fromEulerAnglesXYZ(-3+2*i, 0, 0) + end +end + +function Whack() + for i = 0, 1, 0.2 do + if Tool.CurAnim.Value ~= "norm" then return end + wait() + RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.3+i, 0, -0.5+0.5*i) + LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.7-0.25*i, 0, 0.8-0.6*i) + end + for i = 0, 1, 0.25 do + if Tool.CurAnim.Value ~= "norm" then return end + wait() + RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(2.3-2.5*i, 0, 0) + LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.45-0.25*i, 0, 0.2) + GRP.C0 = CFrame.new(0, -1, 0) * CFrame.fromEulerAnglesXYZ(-1-0.5*i, 0, 0) + end + for i = 0, 1, 0.2 do + if Tool.CurAnim.Value ~= "norm" then return end + wait() + RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(-0.2+1.5*i, 0, -0.5*i) + LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.2+0.5*i, 0, 0.2+0.6*i) + GRP.C0 = CFrame.new(0, -1, 0) * CFrame.fromEulerAnglesXYZ(-1.5+0.5*i, 0, 0) + end +end + +function onActivated() + if Tool.CurAnim.Value == "homerun" then + Tool.CurAnim.Value = "norm" + Whack() + elseif Tool.CurAnim.Value == "norm" then + Tool.CurAnim.Value = "homerun" + HomeRun() + end +end + +script.Parent.Activated:connect(onActivated) + true + + + + + CurAnim + homerun + true + + + + + + true + + -0.5 + 0 + 0 + 0 + 0 + -1 + -0 + 1 + 0 + 1 + 0 + 0 + + SubspaceTripmine + rbxasset://textures/Tripmine.png + true + + + + false + -0.5 + 0.5 + 0 + 0 + -0.5 + 0.5 + 0 + 0 + 1032 + + -2 + 3.4000001 + 10 + 1 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 1 + + true + 0.5 + 0 + 0.300000012 + -0.5 + 0.5 + 0 + 0 + -0.5 + 0.5 + 0 + 0 + false + 256 + Handle + 0 + -0.5 + 0.5 + 0 + 0 + + 0 + 0 + 0 + + -0.5 + 0.5 + 0 + 0 + 0 + + 0 + 0 + 0 + + true + 1 + + 2 + 2 + 2 + + + + + 2 + 2 + rbxasset://fonts/TripmineMesh.mesh + 5 + Mesh + + 0 + 0 + 0 + + + 0.699999988 + 0.699999988 + 0.699999988 + + rbxasset://textures/TripmineTex.png + + 1 + 1 + 1 + + true + + + + + + + true + + -0.400000006 + 0 + -1 + -0 + 1 + -0 + 1 + 0 + 0 + 0 + 0 + -1 + + BluesteelClaws + rbxasset://textures/Claw.png + true + + + + false + -0.5 + 0.5 + 0 + 0 + -0.5 + 0.5 + 0 + 0 + 199 + + 29.4997463 + 8.40000629 + 77.0000153 + -3.42285489e-008 + 0 + -1 + 0 + 1 + 0 + 1 + 0 + -3.42285489e-008 + + true + 0.5 + 2 + 0.300000012 + -0.5 + 0.5 + 0 + 0 + -0.5 + 0.5 + 0 + 0 + false + 256 + Handle + 0.400000006 + -0.5 + 0.5 + 0 + 0 + + 0 + 0 + 0 + + -0.5 + 0.5 + 0 + 0 + 0 + + 0 + 0 + 0 + + true + 1 + + 1 + 0.800000012 + 2 + + + + + 2 + 2 + rbxasset://fonts/ClawMesh.mesh + 5 + Mesh + + 0 + 0 + 0 + + + 1 + 1 + 1 + + rbxasset://textures/ClawTex.png + + 1 + 1 + 1 + + true + + + + + + + true + + 0 + -0.550000012 + -0.649999976 + 1 + -0 + 0 + 0 + 0 + -1 + 0 + 1 + 0 + + LaserPistol + rbxasset://textures/LaserPistol.png + true + + + + false + -0.5 + 0.5 + 0 + 0 + -0.5 + 0.5 + 0 + 0 + 194 + + 25.7173538 + 18.3032875 + 44 + 0.000554769649 + -0.717356086 + 0.696706533 + 0.000571212207 + 0.696706712 + 0.717355847 + -0.999999702 + 0 + 0.000796274282 + + true + 0.5 + 2 + 0.300000012 + -0.5 + 0.5 + 0 + 0 + -0.5 + 0.5 + 0 + 0 + false + 256 + Handle + 0 + -0.5 + 0.5 + 0 + 0 + + 0 + 0 + 0 + + -0.5 + 0.5 + 0 + 0 + 0 + + 0 + 0 + 0 + + true + 1 + + 1 + 3.60000014 + 1 + + + + + 2 + 2 + rbxasset://fonts/LaserPistolMesh.mesh + 5 + Mesh + + 0 + 0 + 0 + + + 1 + 1 + 1 + + rbxasset://textures/LaserPistolTex.png + + 1 + 1 + 1 + + true + + + + + + false + + GunScript + -------- OMG HAX +Tool = script.Parent + +function gunUp() + Tool.GripForward = Vector3.new(0,.981,-.196) + Tool.GripRight = Vector3.new(1,0,0) + Tool.GripUp = Vector3.new(0,.196,.981) +end + +function gunOut() + Tool.GripForward = Vector3.new(0,1,0) + Tool.GripRight = Vector3.new(1,0,0) + Tool.GripUp = Vector3.new(0,0,1) +end + +function onActivated() + if Tool.Shoot.Value == false then + gunUp() + Tool.Shoot.Value = true + else + gunOut() + Tool.Shoot.Value = false + end +end + +script.Parent.Activated:connect(onActivated) + true + + + + + Shoot + false + true + + + + - + - true ChangeHistoryService + true - + - true Instance + true - + - true Instance + true \ No newline at end of file diff --git a/scripts/launcher/3DView/CSView.lua b/scripts/launcher/3DView/CSView.lua index 2bb7729..1ddd5e4 100644 --- a/scripts/launcher/3DView/CSView.lua +++ b/scripts/launcher/3DView/CSView.lua @@ -1,5 +1,10 @@ settings().Rendering.FrameRateManager = 2 pcall(function() game:GetService("ScriptContext").ScriptsDisabled = false end) +game.CoreGui.RobloxGui:Remove() +game.GuiRoot.RightPalette:Remove() +game.GuiRoot.ChatMenuPanel:Remove() +game.GuiRoot.ScoreHud:Remove() +game.GuiRoot.ChatHud:Remove() --function made by rbxbanland function newWaitForChild(newParent,name) @@ -405,12 +410,6 @@ print("3DView loaded. Nerd.") function CS3DView(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID) game:GetService("RunService"):Run() - - game.CoreGui.RobloxGui:Remove() - game.GuiRoot.RightPalette:Remove() - game.GuiRoot.ChatMenuPanel:Remove() - game.GuiRoot.ScoreHud:Remove() - game.GuiRoot.ChatHud:Remove() game:SetMessage("Loading Player...") local plr = game.Players:CreateLocalPlayer(UserID) @@ -462,4 +461,8 @@ function CS3DView(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorI game:ClearMessage() end -_G.CS3DView=CS3DView \ No newline at end of file +function CS3DViewEdit() +end + +_G.CS3DView=CS3DView +_G.CS3DViewEdit=CS3DViewEdit \ No newline at end of file