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

how to make special water in scripting?

Asked by 7 years ago

I am struggling to make water that you can swim in (not including terrain water) I want to make water with the normal bricks I've tried functions but I figured I was using it wrong because I just gave commands in the print. when I tried it, it spammed the print I gave it when I touched it and when that happened the script froze the game. if you have any idea on how to make water like how it is in Arcane Adventures or Scuba Diving at Quill Lake, I would appreciate it if you can help. thanks

0
You could turn water reflection to 0 and wave speed to 0 and turn the water color to what u want. hiimgoodpack 2009 — 7y

2 answers

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

This is not a request website but I can give a little hint maybe

local animVar -- Put in the animation obj
local part = script.Parent
local debounce = false
local function waterAnimPlay()
    if debounce == false then
        anim:Play()
        print("Player Swimming in water")
        else
            return
    end
    wait()
    if debounce == true then
        debounce = false
    end
end
part.Touched:Connect(waterAnimPlay)

You cannot ask for scripts, If you did try put in the script, It makes things more easier.

Ad
Log in to vote
1
Answered by 7 years ago

To do something like this, you need to check the players "Y" axis position and make a script so if it is below that then their gravity is set to a low gravity...

0
No. That is not swimming. If your deep enough, you cannot "swim" out, because all you are doing is lowering gravity. hiimgoodpack 2009 — 7y

Answer this question