Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Like everytime click there's gui will pop up that says "1+ strength"? [closed]

Asked by 5 years ago

Like everytime click there's gui will pop up that says "1+ strength"

Thank you!

Closed as Not Constructive by User#19524

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

3 answers

Log in to vote
0
Answered by 5 years ago

This isn't a request site

Ad
Log in to vote
0
Answered by 5 years ago

u will need to first make a screengui an in it, put a textbox. place the screengui in the starter gui and edit whatthe textbox needs to say. after that place the textbox in a localscript and put the localscript in starterpack. in the localscript put in the following code:

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()

mouse.Button1Down:connect(function()
    local gui = script:FindFirstChild("testscreengui", true) -- or the identity of the screengui
    local guiclone = gui:Clone()

    guiclone.Parent = player.PlayerGui
    game:GetService("Debris"):AddItem(guiclone, .5)
end)
Log in to vote
-1
Answered by 5 years ago
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
local coolDown = false
local messageTime = 2
Mouse.Button1Down:connect(function()
    if not coolDown then
        coolDown = true
        local Message = Instance.new("TextLabel", Player:WaitForChild("PlayerGui").ScreenGui)
        Message.Position = UDim2.new(math.random(2,8)/10,0,math.random(2,8)/10,0)
        Message.Size = UDim2.new(0.2,0,0.1,0)
        Message.TextScaled = true
        Message.AnchorPoint = Vector2.new(0.5,0.5)
        Message.Text = "+1 Strength"
        wait(messageTime)
        Message:Destroy()
        coolDown = false
    end
end)

Just put this into a local script and insert a screengui into startergui, this is the most basic as it can get it doesn't have any fancy effects/

0
Thank you daniloeslawan -5 — 5y
0
dont spoon feed scripts to other ppl User#23365 30 — 5y
0
the parent argument of Instance.new() is deprecated, and :connect() is too use :Connect() User#23365 30 — 5y
0
roasted DeceptiveCaster 3761 — 5y