Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer -- Addressing the Player
- local char = player.Character --Addressing the player character
- local message = "SuperSaiyan" -- What you want to active the transformation
- player.Chatted:Connect(function(msg)
- if msg == message then
- game.Chat:Chat(char.Head,"FRIEZZA","Red") -- Makes the player chat bubble
- local part = Instance.new("Part",workspace) --Making a part and parenting to the workspace
- part.Material = Enum.Material.Neon --Material of the part. Note that if you do "Neon" it won't work due to invalid syntax
- part.Position = char.UpperTorso.Position
- part.CanCollide = false --So It won't floop your roblox character
- part.Anchored = true --So it won't follow on the floor
- part.Shape = "Ball" --The Shape of the part which is going to grow
- for i = 1,20 do --How long to do the transformation
- part.BrickColor = BrickColor.Random() ---Making it different colors to make it look nicer
- part.Size = part.Size + Vector3.new(1,1,1) --Grows by Vector3
- part.Transparency = part.Transparency + .05
- wait(.05)
- end
- local function superab()
- char.Humanoid.WalkSpeed = 50
- char.Humanoid.JumpPower = 500
- end
- superab()
- end
- end)
- local player = game:GetService('Players').LocalPlayer
- local UIS = game:GetService('UserInputService')
- local Module = require(game:GetService('ReplicatedStorage').TransformModule)
- local Debounce = false
- UIS.InputBegan:connect(function(key)
- if key.KeyCode == Enum.KeyCode.Z and Debounce == false then
- Module.Transform(player, true)
- Debounce = true
- wait(4)
- Debounce = false
- elseif key.KeyCode == Enum.KeyCode.X and Debounce == false then
- Module.Transform(player, false)
- Debounce = true
- wait(4)
- Debounce = false
- end
- end)
- --[[
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement