SHOW:
|
|
- or go back to the newest paste.
1 | local player = game.Players.LocalPlayer -- Addressing the Player | |
2 | local char = player.Character --Addressing the player character | |
3 | local message = "SuperSaiyan" -- What you want to active the transformation | |
4 | ||
5 | player.Chatted:Connect(function(msg) | |
6 | if msg == message then | |
7 | game.Chat:Chat(char.Head,"FRIEZZA","Red") -- Makes the player chat bubble | |
8 | local part = Instance.new("Part",workspace) --Making a part and parenting to the workspace | |
9 | part.Material = Enum.Material.Neon --Material of the part. Note that if you do "Neon" it won't work due to invalid syntax | |
10 | part.Position = char.UpperTorso.Position | |
11 | part.CanCollide = false --So It won't floop your roblox character | |
12 | part.Anchored = true --So it won't follow on the floor | |
13 | part.Shape = "Ball" --The Shape of the part which is going to grow | |
14 | for i = 1,20 do --How long to do the transformation | |
15 | part.BrickColor = BrickColor.Random() ---Making it different colors to make it look nicer | |
16 | part.Size = part.Size + Vector3.new(1,1,1) --Grows by Vector3 | |
17 | part.Transparency = part.Transparency + .05 | |
18 | wait(.05) | |
19 | end | |
20 | local function superab() | |
21 | char.Humanoid.WalkSpeed = 50 | |
22 | char.Humanoid.JumpPower = 500 | |
23 | end | |
24 | superab() | |
25 | end | |
26 | end) | |
27 | - | end) |
27 | + | |
28 | local player = game:GetService('Players').LocalPlayer | |
29 | local UIS = game:GetService('UserInputService') | |
30 | local Module = require(game:GetService('ReplicatedStorage').TransformModule) | |
31 | local Debounce = false | |
32 | ||
33 | UIS.InputBegan:connect(function(key) | |
34 | if key.KeyCode == Enum.KeyCode.Z and Debounce == false then | |
35 | Module.Transform(player, true) | |
36 | Debounce = true | |
37 | wait(4) | |
38 | Debounce = false | |
39 | elseif key.KeyCode == Enum.KeyCode.X and Debounce == false then | |
40 | Module.Transform(player, false) | |
41 | Debounce = true | |
42 | wait(4) | |
43 | Debounce = false | |
44 | end | |
45 | end) | |
46 | ||
47 | --[[ |